Wait until the sync has stopped before marking the task as complete. (#3564)

This commit is contained in:
Doug
2024-11-28 17:30:07 +00:00
committed by GitHub
parent d48fb64468
commit 4869dcfe97
4 changed files with 54 additions and 13 deletions
@@ -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?