another bugfix #2

This commit is contained in:
Flummi 2016-11-02 17:39:01 +01:00
parent c155a278e3
commit 3969b0a092

View File

@ -179,7 +179,7 @@ module.exports = (lib) => {
if(size > cfg.maxFileSize)
cb({ success: false, file: tmpdest, msg: 'f0ck! your file is too big (~'+lib.formatSize(size)+'), max '+lib.formatSize(cfg.maxFileSize)+' allowed' });
else {
fs.stat('./b/' + cb.file, (err, stat) => {
fs.stat('./b/' + tmpdest, (err, stat) => {
if(err === null) {
lib.getCheckSum('./b/' + tmpdest, (cbcs) => {
lib.checkRepostCheckSum(cbcs, (cbcrcs) => {