Diff between 6f338a8f6ab1b79aa9e7066054bec7b4668cfa23 and 29405cc587e83b921fce761d876f582b90b618b0

Changed Files

File Additions Deletions Status
src/device.c +5 -0 modified

Full Patch

diff --git a/src/device.c b/src/device.c
index de2f010..c210bcb 100644
--- a/src/device.c
+++ b/src/device.c
@@ -3143,6 +3143,11 @@ gboolean btd_device_remove_attio_callback(struct btd_device *device, guint id)
 	if (device->attios != NULL || device->attios_offline != NULL)
 		return TRUE;
 
+	if (device->auto_id) {
+		g_source_remove(device->auto_id);
+		device->auto_id = 0;
+	}
+
 	att_cleanup(device);
 
 	return TRUE;