CollectionWatcher: Abort collection scan on exit

This commit is contained in:
Jonas Kvinge
2022-01-06 23:14:10 +01:00
parent 2f3e8986ab
commit 7d96fe8b65
3 changed files with 18 additions and 14 deletions

View File

@@ -137,6 +137,7 @@ void SCollection::Exit() {
QObject::connect(backend_, &CollectionBackend::ExitFinished, this, &SCollection::ExitReceived);
QObject::connect(watcher_, &CollectionWatcher::ExitFinished, this, &SCollection::ExitReceived);
backend_->ExitAsync();
watcher_->Abort();
watcher_->ExitAsync();
}