mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Discovery: make sure finished is not called twice, even in case of errors
This commit is contained in:
parent
20e6ac05e4
commit
ab124a76d8
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user