From c0b0df3160a2f924b80789edd5524802bdbe637c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 12 May 2014 18:59:24 +0530 Subject: [PATCH] Increase time we wait for the antivirus to curl up and die --- src/calibre/db/restore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/db/restore.py b/src/calibre/db/restore.py index c26f4dfe70..2c942cef1b 100644 --- a/src/calibre/db/restore.py +++ b/src/calibre/db/restore.py @@ -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