We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97069df commit d23b498Copy full SHA for d23b498
1 file changed
core/src/jsMain/kotlin/Peripheral.kt
@@ -265,7 +265,7 @@ public class JsPeripheral internal constructor(
265
}
266
267
internal suspend fun stopObservation(characteristic: Characteristic) {
268
- val listener = observationListeners[characteristic] ?: return
+ val listener = observationListeners.remove(characteristic) ?: return
269
270
bluetoothRemoteGATTCharacteristicFrom(characteristic).apply {
271
/* Throws `DOMException` if connection is closed:
0 commit comments