Skip to content

Commit 80be7ef

Browse files
committed
change decrementing counter to calling finish
1 parent f28f5e9 commit 80be7ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/uploadhandler.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ module.exports = function (options) {
103103
fileInfo.size = file.size;
104104
if (!fileInfo.validate()) {
105105
fs.unlink(file.path);
106-
counter--;
106+
finish();
107107
return;
108108
}
109109

@@ -146,7 +146,7 @@ module.exports = function (options) {
146146
});
147147
});
148148
}
149-
else counter--;
149+
else finish();
150150
});
151151
})
152152
.on('aborted', function () {

0 commit comments

Comments
 (0)