From: Peter Meerwald <[email protected]>
since g_io_channel_set_close_on_unref() is called on the channel, no need
to close socket manually beforehand, this fixes
(connmand:14087): GLib-WARNING **: Invalid file descriptor.
---
gweb/gweb.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/gweb/gweb.c b/gweb/gweb.c
index f6828cf..5f18a0e 100644
--- a/gweb/gweb.c
+++ b/gweb/gweb.c
@@ -1075,7 +1075,6 @@ static int connect_session_transport(struct web_session
*session)
session->addr->ai_addrlen) < 0) {
if (errno != EINPROGRESS) {
debug(session->web, "connect() %s", strerror(errno));
- close(sk);
return -EIO;
}
}
--
1.7.10.4
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman