summaryrefslogtreecommitdiff
path: root/python2/pyinotify.py
diff options
context:
space:
mode:
Diffstat (limited to 'python2/pyinotify.py')
-rwxr-xr-xpython2/pyinotify.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python2/pyinotify.py b/python2/pyinotify.py
index 27f0f4e..ec99b71 100755
--- a/python2/pyinotify.py
+++ b/python2/pyinotify.py
@@ -1281,10 +1281,10 @@ class Notifier:
while self._eventq:
raw_event = self._eventq.popleft() # pop next event
watch_ = self._watch_manager.get_watch(raw_event.wd)
- if watch_ is None:
- # Not really sure how we ended up here, nor how we should
- # handle these types of events and if it is appropriate to
- # completly skip them (like we are doing here).
+ # Not really sure how we ended up here, nor how we should
+ # handle these types of events and if it is appropriate to
+ # completly skip them (like we are doing here).
+ if (watch_ is None) and not (raw_event.mask & IN_Q_OVERFLOW):
if not (raw_event.mask & IN_IGNORED):
log.warning("Unable to retrieve Watch object associated to %s",
repr(raw_event))