We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d79806 commit 91ff5feCopy full SHA for 91ff5fe
Sources/SwiftBluetooth/Peripheral/Peripheral+async.swift
@@ -44,7 +44,8 @@ public extension Peripheral {
44
45
let eventSubscription = eventSubscriptions.queue { event, done in
46
guard case .updateNotificationState(let foundCharacteristic, _) = event,
47
- foundCharacteristic.uuid == characteristic.uuid else { return }
+ foundCharacteristic.uuid == characteristic.uuid,
48
+ !foundCharacteristic.isNotifying else { return }
49
50
cont.finish()
51
valueSubscription.cancel()
0 commit comments