fixed sleep() call in filemone service

This commit is contained in:
Lance Edgar 2012-06-19 19:43:07 -05:00
parent 135f0531ec
commit 2e447db219

View file

@ -109,7 +109,7 @@ class FileMonitorService(win32serviceutil.ServiceFramework):
while not file_is_free(path):
# TODO: Add configurable timeout so long-open files can't hijack
# our prcessing.
time.sleep(0.25)
win32api.SleepEx(250, True)
for action in self.monitored[key].actions:
if isinstance(action, tuple):
func = action[0]