summaryrefslogtreecommitdiffstats
path: root/common/glib-helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/glib-helper.c')
-rw-r--r--common/glib-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/glib-helper.c b/common/glib-helper.c
index 29d72e56..e892a893 100644
--- a/common/glib-helper.c
+++ b/common/glib-helper.c
@@ -683,7 +683,7 @@ static gboolean hci_event_watch(GIOChannel *io,
failed:
cmd->cb(status, cmd->caller_data);
- g_io_channel_close(io);
+ g_io_channel_shutdown(io, TRUE, NULL);
return FALSE;
}