Don't check the address for RESYNC svc change event 55/265855/1 accepted/tizen/unified/20211102.024812 submit/tizen/20211101.044616
authordh79pyun <dh79.pyun@samsung.com>
Sun, 31 Oct 2021 23:15:22 +0000 (08:15 +0900)
committerdh79pyun <dh79.pyun@samsung.com>
Sun, 31 Oct 2021 23:15:22 +0000 (08:15 +0900)
Change-Id: I9de5e4497c3a068a45f76796a92c2ea349d433ea
Signed-off-by: dh79pyun <dh79.pyun@samsung.com>
bt-api/bt-event-handler.c

index c7d851b..5850325 100644 (file)
@@ -4216,12 +4216,12 @@ static void __bt_gatt_client_event_filter(GDBusConnection *connection,
 
                _bt_convert_addr_string_to_type(change.device_addr.addr, address_str);
 
-               if (_bluetooth_gatt_check_service_change_watcher_address(&change.device_addr) == FALSE) {
-                       BT_DBG("GATT Service changed, but no watcher for %s", address_str);
-                       return;
-               }
-
                if (change.change_type != BLUETOOTH_GATT_SERVICE_CHANGE_TYPE_RESYNC) {
+                       if (_bluetooth_gatt_check_service_change_watcher_address(&change.device_addr) == FALSE) {
+                               BT_DBG("GATT Service changed, but no watcher for %s", address_str);
+                               return;
+                       }
+
                        bluetooth_get_uuid_name(change.uuid, &name);
                        BT_INFO(" ### GATT Service %s [%s]", change.change_type ? "Added" : "Removed", name);
                        g_free(name);