cc-4309: possible fix
This commit is contained in:
parent
ee54ef2b81
commit
21bad35c39
|
@ -91,9 +91,10 @@ class Manager(Loggable):
|
||||||
def __add_watch(self,path,listener):
|
def __add_watch(self,path,listener):
|
||||||
self.logger.info("Adding listener '%s' to '%s'" %
|
self.logger.info("Adding listener '%s' to '%s'" %
|
||||||
( listener.__class__.__name__, path) )
|
( listener.__class__.__name__, path) )
|
||||||
wd = self.wm.add_watch(path, pyinotify.ALL_EVENTS, rec=True,
|
if not self.has_watch(path):
|
||||||
auto_add=True, proc_fun=listener)
|
wd = self.wm.add_watch(path, pyinotify.ALL_EVENTS, rec=True,
|
||||||
if wd: self.__wd_path[path] = wd.values()[0]
|
auto_add=True, proc_fun=listener)
|
||||||
|
if wd: self.__wd_path[path] = wd.values()[0]
|
||||||
|
|
||||||
def __create_organizer(self, target_path, recorded_path):
|
def __create_organizer(self, target_path, recorded_path):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue