Commit 798c3cbb authored by Tatsuhisa Yamaguchi's avatar Tatsuhisa Yamaguchi Committed by Commit Bot

Bugfix for correctly removing temporary file when cancelled.

Bug: 714579
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I4459f9a3b2e024ce6305f93a4c886600a81b73b6
Reviewed-on: https://chromium-review.googlesource.com/995243Reviewed-by: default avatarNaoki Fukino <fukino@chromium.org>
Commit-Queue: Tatsuhisa Yamaguchi <yamaguchi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548360}
parent 0f2b5cdd
......@@ -722,8 +722,9 @@ unpacker.Compressor.prototype.onErrorInternal_ = function() {
unpacker.Compressor.prototype.removeTemporaryFileIfExists_ = function() {
if (!this.archiveFileEntry_)
return;
const entry = this.archiveFileEntry_;
this.archiveFileEntry_ = null;
this.archiveFileEntry_.remove(
entry.remove(
function() {},
function(error) {
console.error('failed to remove temporary file.');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment