diff --git a/commands/sim.js b/commands/sim.js index 4659d355aa..790ba87003 100644 --- a/commands/sim.js +++ b/commands/sim.js @@ -292,7 +292,7 @@ module.exports = function (program, conf) { } } collectionCursorStream.close() - setImmediate(async () => await getNext()) + return getNext() } if(totalTrades === 0) {