Skip to contentSkip to conversation

core/gatt-client: Fix warning when removing services

PATCH Applied Luiz Augusto von Dentz 2 participants 2 messages Nov 11, 2015 – Nov 12, 2015 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 core/gatt-client: Fix warning when removing services

From: Luiz Augusto von Dentz <[email protected]>

This fixes the following warnings caused by not resetting id to 0:

GLib-CRITICAL **: Source ID 145 was not found when attempting to remove it GLib-CRITICAL **: Source ID 151 was not found when attempting to remove it GLib-CRITICAL **: Source ID 155 was not found when attempting to remove it GLib-CRITICAL **: Source ID 162 was not found when attempting to remove it

---
 src/gatt-client.c | 1 +
 1 file changed, 1 insertion(+)
src/gatt-client.c +1 -0
index 20a5ae6..39f6646 100644
@@ -1654,6 +1654,7 @@ static gboolean set_chrcs_ready(gpointer user_data)
 {
 	struct service *service = user_data;
 
+	service->idle_id = 0;
 	notify_chrcs(service);
 
 	return FALSE;
Signature · 1 line
2.4.3
#1 lore raw

Hi Luiz,

Quoted 9 lines · Luiz Augusto von Dentz

This fixes the following warnings caused by not resetting id to 0:

GLib-CRITICAL **: Source ID 145 was not found when attempting to remove it GLib-CRITICAL **: Source ID 151 was not found when attempting to remove it GLib-CRITICAL **: Source ID 155 was not found when attempting to remove it GLib-CRITICAL **: Source ID 162 was not found when attempting to remove it

---
 src/gatt-client.c | 1 +
 1 file changed, 1 insertion(+)

Applied. Thanks.

Johan