diff --git a/Commons.js b/Commons.js index 48748ca78..b54d04cc3 100644 --- a/Commons.js +++ b/Commons.js @@ -2760,7 +2760,7 @@ i++ if (i < candles.length) { - process.nextTick(loop) + setImmediate(loop) // This will execute the next loop in the next iteration of the NodeJs event loop allowing for other callbacks to be executed. } else { afterLoop() }