Stop watcher when unmounting

This commit is contained in:
Jonas Kvinge
2019-02-20 21:24:10 +01:00
parent 1956ea95ee
commit bc37d00a81
3 changed files with 4 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ SCollection::SCollection(Application *app, QObject *parent)
}
SCollection::~SCollection() {
watcher_->Stop();
watcher_->deleteLater();
watcher_thread_->exit();
watcher_thread_->wait(5000 /* five seconds */);