summaryrefslogtreecommitdiffstats
path: root/input/server.c
diff options
context:
space:
mode:
Diffstat (limited to 'input/server.c')
-rw-r--r--input/server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/input/server.c b/input/server.c
index 82895816..d4bf977f 100644
--- a/input/server.c
+++ b/input/server.c
@@ -348,6 +348,7 @@ int server_start(DBusConnection *conn)
error("Failed to listen on control channel");
return -1;
}
+ g_io_channel_set_close_on_unref(ctrl_io, TRUE);
intr_io = setup_l2cap(19);
if (!intr_io) {
@@ -355,6 +356,7 @@ int server_start(DBusConnection *conn)
g_io_channel_unref(ctrl_io);
ctrl_io = NULL;
}
+ g_io_channel_set_close_on_unref(intr_io, TRUE);
connection = conn;