summaryrefslogtreecommitdiffstats
path: root/smdirwatcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'smdirwatcher.cpp')
-rw-r--r--smdirwatcher.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/smdirwatcher.cpp b/smdirwatcher.cpp
index 371e7cf..83e0efa 100644
--- a/smdirwatcher.cpp
+++ b/smdirwatcher.cpp
@@ -118,6 +118,7 @@ void SmDataColletor::setCheckForPresent(bool present){
void SmDataColletor::run(){
forever {
+ QMutexLocker l(&mHoldMx);
mSemUsed->acquire();
if(mCancel){
QSqlDatabase::database("collectordb").close();