From c7745e56ee2a26663d33bfcc8565e3d2fdb9df03 Mon Sep 17 00:00:00 2001 From: Simon Mcloughlin Date: Mon, 21 Oct 2024 12:45:05 +0100 Subject: [PATCH] empty device list after scan stop, to allow notifications to come in again --- Sources/KukaiCoreSwift/Services/LedgerService.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/KukaiCoreSwift/Services/LedgerService.swift b/Sources/KukaiCoreSwift/Services/LedgerService.swift index c5fb78f..7211fe2 100644 --- a/Sources/KukaiCoreSwift/Services/LedgerService.swift +++ b/Sources/KukaiCoreSwift/Services/LedgerService.swift @@ -257,6 +257,7 @@ public class LedgerService: NSObject, CBPeripheralDelegate, CBCentralManagerDele */ public func stopListening() { self.centralManager?.stopScan() + self.deviceList = [:] self.deviceListPublisher.send(completion: .finished) }