From f6f5ed52a338548dfe7e6c540946a4c0672e0017 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 1 Feb 2016 14:51:14 +0200 Subject: [PATCH] core/gatt-client: Fix not being able to cancel notifications While the notification is still in process notifying flag wont be set but it shall still be possible to cancel it otherwise the client has to wait until the remote respond which can take a lot of time (up to 30 seconds). --- src/gatt-client.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/gatt-client.c b/src/gatt-client.c index 39f664652..b4ca3b637 100644 --- a/src/gatt-client.c +++ b/src/gatt-client.c @@ -1205,9 +1205,6 @@ static DBusMessage *characteristic_stop_notify(DBusConnection *conn, const char *sender = dbus_message_get_sender(msg); struct notify_client *client; - if (!chrc->notifying) - return btd_error_failed(msg, "Not notifying"); - client = queue_remove_if(chrc->notify_clients, match_notify_sender, (void *) sender); if (!client) -- 2.47.3