mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:06:00 +00:00
Wait until the sync has stopped before marking the task as complete. (#3564)
This commit is contained in:
@@ -305,7 +305,7 @@ class ClientProxy: ClientProxyProtocol {
|
||||
stopSync(completion: nil)
|
||||
}
|
||||
|
||||
private func stopSync(completion: (() -> Void)?) {
|
||||
func stopSync(completion: (() -> Void)?) {
|
||||
MXLog.info("Stopping sync")
|
||||
|
||||
if restartTask != nil {
|
||||
|
||||
@@ -123,6 +123,7 @@ protocol ClientProxyProtocol: AnyObject, MediaLoaderProtocol {
|
||||
func startSync()
|
||||
|
||||
func stopSync()
|
||||
func stopSync(completion: (() -> Void)?) // Hopefully this will become async once we get SE-0371.
|
||||
|
||||
func accountURL(action: AccountManagementAction) async -> URL?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user