def stop(self): if self.event is None: _fsevents.stop(self) else: event = self.event self.event = None event.set()
def on_thread_stop(self): if self.watch: _fsevents.remove_watch(self.watch) _fsevents.stop(self) self._watch = None
def on_thread_stop(self): _fsevents.remove_watch(self.watch) _fsevents.stop(self)