Skip to content

Commit

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

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

Co-authored-by: Chase <[email protected]>
  • Loading branch information
2 people authored and YarnSeemannsgarn committed Apr 15, 2020
1 parent 8c54f15 commit d749132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/sim.js
Original file line number Diff line number Diff line change
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 d749132

Please sign in to comment.