Discovery: make sure finished is not called twice, even in case of errors

This commit is contained in:
Olivier Goffart 2018-10-16 16:18:39 +02:00
parent 20e6ac05e4
commit ab124a76d8

View File

@ -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();
}
}