mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Fix some concurrency warnings, update missed licence headers. (#3741)
* Switch the TimelineController to an async sequence and fix the warnings on the UserIndicatorController
This commit is contained in:
@@ -324,16 +324,12 @@ class ClientProxy: ClientProxyProtocol {
|
||||
// Note: This isn't strictly necessary now given the unwrap above, but leaving the code as
|
||||
// documentation. SE-0371 will allow us to fix this by using an async deinit.
|
||||
Task { [syncService] in
|
||||
do {
|
||||
defer {
|
||||
completion?()
|
||||
}
|
||||
|
||||
try await syncService.stop()
|
||||
MXLog.info("Sync stopped")
|
||||
} catch {
|
||||
MXLog.error("Failed stopping the sync service with error: \(error)")
|
||||
defer {
|
||||
completion?()
|
||||
}
|
||||
|
||||
await syncService.stop()
|
||||
MXLog.info("Sync stopped")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user