Diff between eafa30e2a575903abd2e36f452c236c60d7a6bf8 and 55e1678bd839b623996be4dfc2957f3b49244464
Changed Files
| File | Additions | Deletions | Status |
| src/shared/gatt-db.c | +4 | -0 | modified |
Full Patch
diff --git a/src/shared/gatt-db.c b/src/shared/gatt-db.c
index d2cdacc..74c3e70 100644
--- a/src/shared/gatt-db.c
+++ b/src/shared/gatt-db.c
@@ -767,6 +767,10 @@ bool gatt_db_service_set_active(struct gatt_db_attribute *attrib, bool active)
return false;
service = attrib->service;
+
+ if (service->active == active)
+ return true;
+
service->active = active;
notify_service_changed(service->db, service, active);