Diff between 5e44548ec102eec6267f0e0e2521b8e7774d11e0 and 3790a1f46ce0105308a45b4dbb9ca769828fa81d

Changed Files

File Additions Deletions Status
src/gatt-client.c +2 -2 modified

Full Patch

diff --git a/src/gatt-client.c b/src/gatt-client.c
index b5b2ea3..4f70aa7 100644
--- a/src/gatt-client.c
+++ b/src/gatt-client.c
@@ -1449,8 +1449,8 @@ static void notify_io_destroy(void *data)
 {
 	struct notify_client *client = data;
 
-	queue_remove(client->chrc->notify_clients, client);
-	notify_client_unref(client);
+	if (queue_remove(client->chrc->notify_clients, client))
+		notify_client_unref(client);
 }
 
 static DBusMessage *characteristic_acquire_notify(DBusConnection *conn,