summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorGuillaume Zajac <guillaume.zajac@linux.intel.com>2011-03-11 14:39:59 +0100
committerDenis Kenzior <denkenz@gmail.com>2011-03-11 14:04:46 -0600
commit4aa1e669bb86b9c481cc4ea3475ce901c86a9fa1 (patch)
tree8c53fad155226ed09cfd0bc471d5e0fb05b272ba /plugins
parentdad491d7a7442adf5e89b997aa63ecb21d58e05d (diff)
downloadofono-4aa1e669bb86b9c481cc4ea3475ce901c86a9fa1.tar.bz2
dun_gw: Set GIOChannel to not close on unref
This fixes automatic GIOChannel closing when a bluetooth connection is attempted.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dun_gw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/dun_gw.c b/plugins/dun_gw.c
index 53edc74a..3bc48367 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);
}