maybe once, lol
This commit is contained in:
parent
4e9a5f54a9
commit
903ec7f2d6
|
@ -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) ) ) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user