mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-17 09:14:32 +08:00
input: missing close listen sockets(control/interrupt)
This commit is contained in:
parent
3b97946c32
commit
7a2733b957
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user