From 4aa1e669bb86b9c481cc4ea3475ce901c86a9fa1 Mon Sep 17 00:00:00 2001 From: Guillaume Zajac Date: Fri, 11 Mar 2011 14:39:59 +0100 Subject: [PATCH] dun_gw: Set GIOChannel to not close on unref This fixes automatic GIOChannel closing when a bluetooth connection is attempted. --- plugins/dun_gw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dun_gw.c b/plugins/dun_gw.c index 53edc74..3bc4836 100644 --- a/plugins/dun_gw.c +++ b/plugins/dun_gw.c @@ -101,7 +101,7 @@ static void dun_gw_connect_cb(GIOChannel *io, GError *err, gpointer user_data) } fd = g_io_channel_unix_get_fd(io); - g_io_channel_set_close_on_unref(io, TRUE); + g_io_channel_set_close_on_unref(io, FALSE); ofono_emulator_register(em, fd); } -- 2.7.4