Fix NS_ERROR_FILE_IS_LOCKED if no files to add to upload zip

This commit is contained in:
Dan Stillman 2013-05-10 01:14:22 -04:00
parent 4616a51874
commit 6b61795d96

View file

@ -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;
}