Skip to content

Commit

Permalink
Emit finished signal if a sync was aborted
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Nov 23, 2023
1 parent e022838 commit a226cb0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/11396
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Schedule syncs after an abort

We fixed a bug where the client stopped scheduling syncs after a sync was aborted.

https://github.com/owncloud/client/pull/11396
10 changes: 4 additions & 6 deletions src/libsync/syncengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -867,13 +867,11 @@ void SyncEngine::abort()
// Delete the discovery and all child jobs after ensuring
// it can't finish and start the propagator
disconnect(_discoveryPhase.get(), nullptr, this, nullptr);
_discoveryPhase.release()->deleteLater();

if (!_goingDown) {
Q_EMIT syncError(tr("Aborted"));
}
finalize(false);
}
if (!_goingDown) {
Q_EMIT syncError(tr("Aborted"));
}
finalize(false);
}

void SyncEngine::slotSummaryError(const QString &message)
Expand Down

0 comments on commit a226cb0

Please sign in to comment.