Explorar o código

Run synchronously

(cherry picked from commit 0a6dcd059dcba6ee216f48a2d0b36b21cd15b9d3)
Jon Mårtensson %!s(int64=3) %!d(string=hai) anos
pai
achega
c9da93bf34
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      FreeAPS/Sources/APS/OpenAPS/OpenAPS.swift

+ 1 - 1
FreeAPS/Sources/APS/OpenAPS/OpenAPS.swift

@@ -118,7 +118,7 @@ final class OpenAPS {
     }
 
     func oref2() -> Oref2_variables {
-        coredataContext.perform {
+        coredataContext.performAndWait {
             let now = Date()
             let preferences = storage.retrieve(OpenAPS.Settings.preferences, as: Preferences.self)
             var hbt_ = preferences?.halfBasalExerciseTarget ?? 160