def stop(self): self.quit = True try: for wd in self.w._wds: inotify.remove_watch(self.w.fd, wd) except Exception, ex: pass
def remove(self, wd): '''Remove the given watch.''' inotify.remove_watch(self.fd, wd) self._remove(wd)