From 58d635e0c88ea5428072f7901417908f455b93ec Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Thu, 16 Nov 2017 10:29:40 +0100 Subject: pdfrotate: Fix mess-up with nextTick --- modules/pdfrotate/pdfrotate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/pdfrotate') 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){ -- cgit v1.2.3-70-g09d2