mirror of
https://github.com/powerline/powerline.git
synced 2025-07-28 00:04:39 +02:00
parent
b638a8e1c9
commit
c564b64530
@ -87,6 +87,10 @@ class UvWatcher(object):
|
||||
return
|
||||
watch.close(partial(self._stopped_watching, path))
|
||||
|
||||
def is_watching(self, path):
|
||||
with self.lock:
|
||||
return path in self.watches
|
||||
|
||||
def __del__(self):
|
||||
try:
|
||||
lock = self.lock
|
||||
|
Loading…
x
Reference in New Issue
Block a user