summaryrefslogtreecommitdiffstats
path: root/plugins/hfp_ag.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/hfp_ag.c')
-rw-r--r--plugins/hfp_ag.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/hfp_ag.c b/plugins/hfp_ag.c
index 6edd73d8..ad0f503a 100644
--- a/plugins/hfp_ag.c
+++ b/plugins/hfp_ag.c
@@ -110,11 +110,9 @@ static void hfp_ag_connect_cb(GIOChannel *io, GError *err, gpointer user_data)
return;
fd = g_io_channel_unix_get_fd(io);
- ofono_emulator_register(em, fd);
-
g_io_channel_set_close_on_unref(io, FALSE);
- return;
+ ofono_emulator_register(em, fd);
}
static void voicecall_watch(struct ofono_atom *atom,