Skip to content

Commit

Permalink
empty device list after scan stop, to allow notifications to come in …
Browse files Browse the repository at this point in the history
…again
  • Loading branch information
simonmcl committed Oct 21, 2024
1 parent 08b109a commit c7745e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/KukaiCoreSwift/Services/LedgerService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ public class LedgerService: NSObject, CBPeripheralDelegate, CBCentralManagerDele
*/
public func stopListening() {
self.centralManager?.stopScan()
self.deviceList = [:]
self.deviceListPublisher.send(completion: .finished)
}

Expand Down

0 comments on commit c7745e5

Please sign in to comment.