Increase time we wait for the antivirus to curl up and die

This commit is contained in:
Kovid Goyal 2014-05-12 18:59:24 +05:30
parent d3c2d8cd6f
commit c0b0df3160

View File

@ -273,7 +273,7 @@ class Restore(Thread):
os.rename(dbpath, save_path) os.rename(dbpath, save_path)
except OSError as err: except OSError as err:
if getattr(err, 'winerror', None) == 32: # ERROR_SHARING_VIOLATION if getattr(err, 'winerror', None) == 32: # ERROR_SHARING_VIOLATION
time.sleep(4) # Wait a little for dropbox or the antivirus or whatever to release the file time.sleep(30) # Wait a little for dropbox or the antivirus or whatever to release the file
os.rename(dbpath, save_path) os.rename(dbpath, save_path)
else: else:
raise raise