diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-11-16 10:29:40 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-11-16 10:29:55 +0100 |
commit | 58d635e0c88ea5428072f7901417908f455b93ec (patch) | |
tree | f9dc095c2c60a4238405a1d050382fe6e7175e2e | |
parent | dbd9786a07e9c10cfe07db58f660fa186243b9a3 (diff) |
pdfrotate: Fix mess-up with nextTick
-rw-r--r-- | modules/pdfrotate/pdfrotate.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/pdfrotate/pdfrotate.js b/modules/pdfrotate/pdfrotate.js index a41241d..92f8eb1 100644 --- a/modules/pdfrotate/pdfrotate.js +++ b/modules/pdfrotate/pdfrotate.js @@ -31,8 +31,8 @@ function cleanUpDir(path){ // Clear files older than 30 mins every 30 mins setInterval(function(){ - process.nextTick(cleanUpDir(moddir+"/uploads")); - process.nextTick(cleanUpDir(moddir+"/converted")); + process.nextTick(function(){cleanUpDir(moddir+"/uploads");}); + process.nextTick(function(){cleanUpDir(moddir+"/converted");}); },30*60*1000); module.exports=function(app,io,_moddir){ |