Revert "Fix service removed event not occur issue" 21/232821/1 accepted/tizen/unified/20200508.045023 submit/tizen/20200507.222502
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 7 May 2020 22:36:38 +0000 (07:36 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 7 May 2020 22:38:45 +0000 (07:38 +0900)
This reverts commit 5168525fbb7cb1fc6b061c3ec3e06e1163335715.

Change-Id: I4abca5501dcd3eebc19c17d621a134db4ae2a31b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/bluetooth-gatt.c

index 00975fa..aab2dc2 100644 (file)
@@ -3086,9 +3086,7 @@ int bt_gatt_server_unregister_all_services(bt_gatt_server_h server)
        g_slist_free_full(serv->services, __bt_gatt_free_service); /* LCOV_EXCL_START */
        serv->services = NULL;
 
-#ifdef TIZEN_FEATURE_GATT_RELAY
-       ret = bluetooth_gatt_server_unregister(instance_id);
-#else
+#ifndef TIZEN_FEATURE_GATT_RELAY
        ret = bluetooth_gatt_unregister_application();
 #endif
        is_gatt_server_started = false;