commit 6b61795d96ce42d93a704eb6a248c7f42a7cac71
parent 4616a51874c8342765ef98bf3eee8af1cbca4a7a
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 10 May 2013 01:14:22 -0400
Fix NS_ERROR_FILE_IS_LOCKED if no files to add to upload zip
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js
@@ -1663,6 +1663,7 @@ Zotero.Sync.Storage = new function () {
var fileList = _zipDirectory(dir, dir, zw);
if (fileList.length == 0) {
Zotero.debug('No files to add -- removing zip file');
+ zw.close();
tmpFile.remove(null);
return false;
}