knox-mpu-alt
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -361,11 +361,2 @@ var _ = require('lodash'), | ||
// If the part stream is prematurely ended because the upload was aborted, | ||
// call the task callback so that async.queue will drain properly. | ||
part.stream.on('end', function() { | ||
if (mpu.aborted && !part.alreadyCB) { | ||
part.alreadyCB = true; | ||
return callback(null); | ||
} | ||
}); | ||
// Wait for the upload to complete | ||
@@ -432,2 +423,12 @@ req.on('response', function(res) { | ||
if (!this.noDisk) { | ||
// If the part stream is prematurely ended because the upload was aborted, | ||
// call the task callback so that async.queue will drain properly. | ||
partStream.on('end', function() { | ||
if (mpu.aborted && !part.alreadyCB) { | ||
part.alreadyCB = true; | ||
return callback(null); | ||
} | ||
}); | ||
partStream.on('data', function (data) { | ||
@@ -434,0 +435,0 @@ written += data.length; |
{ | ||
"name": "knox-mpu-alt", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Provide multi part upload functionality to Amazon S3 using the knox library. Forked from knox-mpu.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36075