diff --git a/twisted/plugins/monitorbot_plugin.py b/twisted/plugins/monitorbot_plugin.py index a13c33b..d7bc955 100644 --- a/twisted/plugins/monitorbot_plugin.py +++ b/twisted/plugins/monitorbot_plugin.py @@ -60,7 +60,7 @@ class MonitorBotService(Service): return s def fsnotify(ignored, filepath, mask): - if self._callid != None: + if self._callid != None and self._callid.active(): self._callid.cancel() path_segments = filepath.segmentsFrom(self._watch_path) new_path = '/'.join(path_segments)