diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-05-26 11:51:22 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-05-29 16:02:34 +0300 |
commit | e4078df99904fa2128aa490b55bb9c619f44d59c (patch) | |
tree | ecca5599a161364aab3fd7b505d83491fde4fe5b /src/gatt-client.c | |
parent | f585e7ac8da3ba20fc465e3c255d2a88b7390977 (diff) | |
download | bluez-e4078df99904fa2128aa490b55bb9c619f44d59c.tar.gz |
core/gatt: Don't return an error if notification is already enabled
In case the client is already subscribed and attempt to register again
just return success as the handling should be the same as success.
Diffstat (limited to 'src/gatt-client.c')
-rw-r--r-- | src/gatt-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gatt-client.c b/src/gatt-client.c index b86bfe64f..6c6784170 100644 --- a/src/gatt-client.c +++ b/src/gatt-client.c @@ -1173,7 +1173,7 @@ static DBusMessage *characteristic_start_notify(DBusConnection *conn, client = queue_find(chrc->notify_clients, match_notify_sender, sender); if (client) return client->notify_id ? - btd_error_failed(msg, "Already notifying") : + g_dbus_create_reply(msg, DBUS_TYPE_INVALID) : btd_error_in_progress(msg); client = notify_client_create(chrc, sender); |