mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
ios: fix background refresh (#769)
* ios: fix background refresh * change app inactive check
This commit is contained in:
committed by
GitHub
parent
a8ba4ede82
commit
29c6d51e6a
@@ -564,8 +564,7 @@ class ChatReceiver {
|
||||
await processReceivedMsg(msg)
|
||||
}
|
||||
if self.receiveMessages {
|
||||
do { try await Task.sleep(nanoseconds: 7_500_000) }
|
||||
catch { logger.error("receiveMsgLoop: Task.sleep error: \(error.localizedDescription)") }
|
||||
_ = try? await Task.sleep(nanoseconds: 7_500_000)
|
||||
await receiveMsgLoop()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user