summaryrefslogtreecommitdiffstats
path: root/input/server.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-04-05 13:51:58 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-04-05 13:51:58 +0000
commit7a2733b957f458e8bc4d33a37f3d60aa05af67fd (patch)
treeb1948ca6fbe8961e90fc7f907cdecd65eecb156b /input/server.c
parent3b97946c32b28af92a5a809bb690dc9be3af6eaf (diff)
input: missing close listen sockets(control/interrupt)
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;