diff --git a/internal/platform/implementation/windows/ble_gatt_server.cc b/internal/platform/implementation/windows/ble_gatt_server.cc index eb90a02d..12d410af 100644 --- a/internal/platform/implementation/windows/ble_gatt_server.cc +++ b/internal/platform/implementation/windows/ble_gatt_server.cc @@ -451,6 +451,9 @@ bool BleGattServer::StartAdvertisement(const ByteArray& service_data, if (absl::Milliseconds(wait_milliseconds) > kGattServerTimeout) { LOG(ERROR) << __func__ << ": Failed to start GATT advertising due to timeout."; + // GattServiceProvider can become Started after the timeout. Stop + // waiting for the status change and continue as if it has started.. + break; } }