diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index e53745265b..72264fb291 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -1173,6 +1173,7 @@ int ProcessDirectoryJob::processSubJobs(int nbJobs) void ProcessDirectoryJob::dbError() { _discoveryData->fatalError(tr("Error while reading the database")); + _pendingAsyncJobs = -1; // We're finished, we don't want to emit finished again emit finished(); } }