* [PATCH] attrib/interactive: fix duplicate close
@ 2016-08-11 5:04 SeulKi Shin
0 siblings, 0 replies; only message in thread
From: SeulKi Shin @ 2016-08-11 5:04 UTC (permalink / raw)
To: linux-bluetooth; +Cc: SeulKi Shin
This patch removes following warning message when gatttool exits
interactive mode.
(gatttool:457): GLib-WARNING **: Invalid file descriptor.
Since g_attrib_unref closes GIOChannel's fd g_io_channel_shutdown should
not be called here. This is because GAttrib is always created with "close on
unref" flag.
Signed-off-by: SeulKi Shin <sskcorea@gmail.com>
---
attrib/interactive.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/attrib/interactive.c b/attrib/interactive.c
index 7d4786a..4c48ca9 100644
--- a/attrib/interactive.c
+++ b/attrib/interactive.c
@@ -192,7 +192,6 @@ static void disconnect_io()
attrib = NULL;
opt_mtu = 0;
- g_io_channel_shutdown(iochannel, FALSE, NULL);
g_io_channel_unref(iochannel);
iochannel = NULL;
--
2.9.2.windows.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-11 5:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-11 5:04 [PATCH] attrib/interactive: fix duplicate close SeulKi Shin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.