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.
2 parents 54aabea + d23b498 commit cbb9b40Copy full SHA for cbb9b40
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