diff --git a/src/shared/gatt-client.c b/src/shared/gatt-client.c
index 3aaa089..06ac763 100644
--- a/src/shared/gatt-client.c
+++ b/src/shared/gatt-client.c
{
struct discovery_op *op;
+ /* On full database reset just re-run attribute discovery */
+ if (start_handle == 0x0001 && end_handle == 0xffff)
+ goto discover;
+
/* Invalidate and remove all effected notify callbacks */
gatt_client_remove_all_notify_in_range(client, start_handle,
end_handle);
*/
gatt_db_clear_range(client->db, start_handle, end_handle);
+discover:
op = discovery_op_create(client, start_handle, end_handle,
service_changed_complete,
service_changed_failure);