[Bluetooth] Stop server after unregistering last service
[platform/core/api/webapi-plugins.git] / src / bluetooth / bluetooth_gatt_server_service.cc
index fe05c02..17488bc 100644 (file)
@@ -709,5 +709,10 @@ void BluetoothGATTServerService::ClearGATTData() {
   callback_names_.clear();
 }
 
+bool BluetoothGATTServerService::IsAnyServiceRegistered() {
+  ScopeLogger();
+  return 0 != gatt_objects_.size();
+}
+
 }  // namespace bluetooth
 }  // namespace extension