Browse Source

Hack-fix upkeep script

More fallout a la 0a4e5eaf.
Needs a proper solution.
pull/126/head
Lal'C Mellk Mal 3 years ago
parent
commit
e83e8db76b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      upkeep/clean.js

+ 2
- 2
upkeep/clean.js View File

@@ -136,11 +136,11 @@ function MD5_file(path, callback) {
});
}

if (require.main === module) {
if (require.main === module) process.nextTick(function () {
var recycler = new Recycler;
recycler.recycle_archive(function (err) {
if (err) throw err;
recycler.y.disconnect();
process.exit(0);
});
}
});

Loading…
Cancel
Save