Diff between 138ac9faaeb525446ac6e2e5000bd764737685fa and eac83af8160560ca4d277081b7cffefdfdc77bf2
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +6 | -0 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index 763c79c..bd25a27 100644
--- a/src/device.c
+++ b/src/device.c
@@ -2958,5 +2958,11 @@ gboolean btd_device_remove_attio_callback(struct btd_device *device, guint id)
device->attrib = NULL;
}
+ if (device->att_io) {
+ g_io_channel_shutdown(device->att_io, FALSE, NULL);
+ g_io_channel_unref(device->att_io);
+ device->att_io = NULL;
+ }
+
return TRUE;
}