diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index 4182be1fda..95e4e6e222 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; }