fixed sleep() call in filemone service
This commit is contained in:
parent
135f0531ec
commit
2e447db219
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue