maybe once, lol

This commit is contained in:
Flummi 2018-05-26 00:06:16 +00:00
parent 4e9a5f54a9
commit 903ec7f2d6

View File

@ -171,7 +171,7 @@ module.exports = (lib) => {
} }
dat dat
.on('finish', () => { .once('finish', () => {
var size = dat.bytesWritten; var size = dat.bytesWritten;
dat.end(); dat.end();
if( ( size <= lib.cfg.main.maxFileSize ) || force || ( userlevel >= 60 && size <= (lib.cfg.main.maxFileSize * 2) ) ) { if( ( size <= lib.cfg.main.maxFileSize ) || force || ( userlevel >= 60 && size <= (lib.cfg.main.maxFileSize * 2) ) ) {