CollectionWatcher: Use mutex for stop and abort

This commit is contained in:
Jonas Kvinge
2024-08-23 20:22:18 +02:00
parent 2778a55e8e
commit be09011bb7
7 changed files with 102 additions and 49 deletions

View File

@@ -70,7 +70,7 @@ FilesystemDevice::FilesystemDevice(const QUrl &url, DeviceLister *lister, const
FilesystemDevice::~FilesystemDevice() {
watcher_->Stop();
watcher_->Abort();
watcher_->deleteLater();
watcher_thread_->exit();
watcher_thread_->wait();