mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Increase time we wait for the antivirus to curl up and die
This commit is contained in:
parent
d3c2d8cd6f
commit
c0b0df3160
@ -273,7 +273,7 @@ class Restore(Thread):
|
||||
os.rename(dbpath, save_path)
|
||||
except OSError as err:
|
||||
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)
|
||||
else:
|
||||
raise
|
||||
|
Loading…
x
Reference in New Issue
Block a user