summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--smdirwatcher.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/smdirwatcher.cpp b/smdirwatcher.cpp
index 87d2eff..839b021 100644
--- a/smdirwatcher.cpp
+++ b/smdirwatcher.cpp
@@ -81,7 +81,9 @@ void SmDirWatcher::run(){
goto out;
}
c = qMakePair(name, curEvent);
- mDataQueue->enqueue(c);
+ if(!mDataQueue->contains(c)){
+ mDataQueue->enqueue(c);
+ }
out:
mSemUsed->release();
i += sizeof(inotify_event) + e->len;