From 6b61795d96ce42d93a704eb6a248c7f42a7cac71 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 10 May 2013 01:14:22 -0400 Subject: [PATCH] Fix NS_ERROR_FILE_IS_LOCKED if no files to add to upload zip --- chrome/content/zotero/xpcom/storage.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index 4182be1fd..95e4e6e22 100644 --- 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; }