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

Commit

Permalink
make sure we dont close the stream until async indicators are done, fix
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Sep 16, 2018
1 parent 22677be commit 369a8e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions core/gekkoStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ Gekko.prototype.finalize = function() {
}

Gekko.prototype.shutdown = function() {
this.end();
async.eachSeries(
this.plugins,
function(c, callback) {
Expand Down
1 change: 0 additions & 1 deletion core/markets/backtest.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ Market.prototype.processCandles = function(err, candles) {
if(this.ended) {
this.closed = true;
this.reader.close();
this.emit('end');
} else {
util.die('Query returned no candles (do you have local data for the specified range?)');
}
Expand Down

0 comments on commit 369a8e9

Please sign in to comment.