Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
Fix/simulation stops after1971 (#1987)
Browse files Browse the repository at this point in the history
* stale[bot] (#1744)

* fixing simulation stops after #1971, setImmediate in async function

Co-authored-by: Chase <chase@sillevis.net>
  • Loading branch information
james-ingold and DeviaVir committed Feb 24, 2020
1 parent 2616efc commit 2351304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/sim.js
Expand Up @@ -292,7 +292,7 @@ module.exports = function (program, conf) {
}
}
collectionCursorStream.close()
setImmediate(async () => await getNext())
return getNext()
}

if(totalTrades === 0) {
Expand Down

0 comments on commit 2351304

Please sign in to comment.