From bc8da30b1a6fc665edbc1d56e1ea15c0d88fc9c3 Mon Sep 17 00:00:00 2001 From: Saurav Babu Date: Fri, 9 Mar 2018 14:40:23 +0530 Subject: [PATCH] nsd: Fixed issue in which socket is being closed twice Change-Id: I3cdbe4d9e93e205727e6dac6165dc86d473e67b8 Signed-off-by: Saurav Babu --- src/dns-sd/dns-sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dns-sd/dns-sd.c b/src/dns-sd/dns-sd.c index d63d1e4..df70126 100644 --- a/src/dns-sd/dns-sd.c +++ b/src/dns-sd/dns-sd.c @@ -226,7 +226,7 @@ void __dnssd_handle_events(int *watch_id, DNSServiceRef *sdRef) sock_io = g_io_channel_unix_new(dns_sd_fd); g_io_channel_set_flags(sock_io, G_IO_FLAG_NONBLOCK, NULL); - g_io_channel_set_close_on_unref(sock_io, TRUE); + g_io_channel_set_close_on_unref(sock_io, FALSE); *watch_id = g_io_add_watch(sock_io, (G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_NVAL), __dnssd_process_result, sdRef); -- 2.7.4