diff options
author | Frédéric Dalleau <frederic.dalleau@linux.intel.com> | 2011-02-17 16:55:26 +0100 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-02-17 10:07:52 -0600 |
commit | 612fb11e16be7d103c90734e2f617278b16654d9 (patch) | |
tree | e227dfa3f15432f64502bc7fe4833373047c1bd7 /plugins/hfp_ag.c | |
parent | 13cff0337322dae184ca035e480c0cca65fe1bb3 (diff) | |
download | ofono-612fb11e16be7d103c90734e2f617278b16654d9.tar.bz2 |
hfp_ag: Do not close client fd on unref
Diffstat (limited to 'plugins/hfp_ag.c')
-rw-r--r-- | plugins/hfp_ag.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/plugins/hfp_ag.c b/plugins/hfp_ag.c index cbf3ccd8..cb4a0be2 100644 --- a/plugins/hfp_ag.c +++ b/plugins/hfp_ag.c @@ -40,7 +40,6 @@ static struct server *server; static guint modemwatch_id; static GList *modems; -static guint channel_watch; static const gchar *hfp_ag_record = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n" @@ -86,12 +85,6 @@ static const gchar *hfp_ag_record = " </attribute>\n" "</record>\n"; -static gboolean hfp_ag_disconnect_cb(GIOChannel *io, GIOCondition cond, - gpointer user_data) -{ - return FALSE; -} - static void hfp_ag_connect_cb(GIOChannel *io, GError *err, gpointer user_data) { struct ofono_modem *modem; @@ -118,8 +111,7 @@ static void hfp_ag_connect_cb(GIOChannel *io, GError *err, gpointer user_data) fd = g_io_channel_unix_get_fd(io); ofono_emulator_register(em, fd); - channel_watch = g_io_add_watch(io, G_IO_NVAL | G_IO_HUP | G_IO_ERR, - hfp_ag_disconnect_cb, NULL); + g_io_channel_set_close_on_unref(io, FALSE); return; |