Fix cancelling pending uploads

pull/1/head
yflory 5 years ago
parent c64eabc33a
commit 96cf6971ce

@ -144,7 +144,10 @@ var upload_cancel = function (Env, safeKey, fileSize, cb) {
var session = Env.getSession(safeKey);
session.pendingUploadSize = fileSize;
session.currentUploadSize = 0;
if (session.blobstage) { session.blobstage.close(); }
if (session.blobstage) {
session.blobstage.close();
delete session.blobstage;
}
var path = makeStagePath(Env, safeKey);

Loading…
Cancel
Save