diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-12-29 11:31:43 -0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-12-29 12:26:42 -0200 |
commit | 0ea75ab4bb3ff96a50785cf2b9860011c49fd7b7 (patch) | |
tree | 4cbacc35dbcc3d3a3275cbb9e8e5ab5c19db9506 /attrib | |
parent | 99f11aef6e94064b872eb4928ba0acad0b399217 (diff) | |
download | bluez-0ea75ab4bb3ff96a50785cf2b9860011c49fd7b7.tar.gz |
attrib: Fix warning when closing connection
Since bt_att is used internally GAttrib should no longer close the
connection otherwise it cause the following warning:
bluetoothd[31756]: attrib/gattrib.c:g_attrib_unref() 0x610c130: g_attrib_unref=1
bluetoothd[31756]: attrib/gattrib.c:g_attrib_unref() 0x610c130: g_attrib_unref=0
(bluetoothd:31756): GLib-WARNING **: Invalid file descriptor.
Diffstat (limited to 'attrib')
-rw-r--r-- | attrib/gattrib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/attrib/gattrib.c b/attrib/gattrib.c index 2fd06e6df..82a6133c0 100644 --- a/attrib/gattrib.c +++ b/attrib/gattrib.c @@ -108,6 +108,7 @@ GAttrib *g_attrib_new(GIOChannel *io, guint16 mtu) if (!attr) return NULL; + g_io_channel_set_close_on_unref(io, FALSE); g_io_channel_ref(io); attr->io = io; |