summaryrefslogtreecommitdiffstats
path: root/smdirwatcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'smdirwatcher.cpp')
-rw-r--r--smdirwatcher.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/smdirwatcher.cpp b/smdirwatcher.cpp
index 8b72aab..069ebfe 100644
--- a/smdirwatcher.cpp
+++ b/smdirwatcher.cpp
@@ -37,6 +37,8 @@ SmDirWatcher::SmDirWatcher(QObject *parent) : QThread(parent), mFd(0), mDescr(0)
}
SmDirWatcher::~SmDirWatcher(){
+ mCollector->terminate();
+ mCollector->wait();
if(mFd && mDescr){
inotify_rm_watch(mFd, mDescr);
}