Przeglądaj źródła

correct crash when G6 CGM deleted

correct crash when G6 CGM deleted
Pierre L 3 lat temu
rodzic
commit
928bf4e912
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      FreeAPS/Sources/APS/CGM/DexcomSourceG6.swift

+ 1 - 1
FreeAPS/Sources/APS/CGM/DexcomSourceG6.swift

@@ -96,7 +96,7 @@ extension DexcomSourceG6: CGMManagerDelegate {
     func recordRetractedAlert(_: LoopKit.Alert, at _: Date) {}
     func recordRetractedAlert(_: LoopKit.Alert, at _: Date) {}
 
 
     func cgmManagerWantsDeletion(_ manager: CGMManager) {
     func cgmManagerWantsDeletion(_ manager: CGMManager) {
-        dispatchPrecondition(condition: .onQueue(.main))
+        dispatchPrecondition(condition: .onQueue(processQueue))
         debug(.deviceManager, " CGM Manager with identifier \(manager.managerIdentifier) wants deletion")
         debug(.deviceManager, " CGM Manager with identifier \(manager.managerIdentifier) wants deletion")
         glucoseManager?.cgmGlucoseSourceType = nil
         glucoseManager?.cgmGlucoseSourceType = nil
     }
     }