diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connection.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index 998282d3..26b40c03 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -466,7 +466,10 @@ void Connection::onSyncSuccess(SyncData &&data, bool fromCache) { void Connection::stopSync() { - if (d->syncJob) + // If there's a sync loop, break it + disconnect(this, &Connection::syncDone, + this, &Connection::syncLoopIteration); + if (d->syncJob) // If there's an ongoing sync job, stop it too { d->syncJob->abandon(); d->syncJob = nullptr; |