Skip to content

Commit

Permalink
swift
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Apr 4, 2024
1 parent 1c33587 commit 8085f73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deltachat-ios/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
UserDefaults.self.pushToDebugArray("ERR2")
}

if !appIsInForeground() {
if !self.appIsInForeground() {
UserDefaults.setMainIoRunning(false) // this also improves resilience: if we crashed before, NSE would never run otherwise
}

Expand Down Expand Up @@ -601,13 +601,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
let eventHandler = DcEventHandler(dcAccounts: self.dcAccounts)
let eventEmitter = self.dcAccounts.getEventEmitter()
logger.info("➡️ event emitter started")
while !shouldShutdownEventLoop {
while !self.shouldShutdownEventLoop {
guard let event = eventEmitter.getNextEvent() else { break }
eventHandler.handleEvent(event: event)
}
logger.info("⬅️ event emitter finished")
eventShutdownSemaphore.signal()
eventHandlerActive = false
self.eventShutdownSemaphore.signal()
self.eventHandlerActive = false
}
}

Expand Down

0 comments on commit 8085f73

Please sign in to comment.