Skip to content

Commit

Permalink
emit reject state after setting it
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Apr 19, 2019
1 parent bb98b52 commit a143345
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exchange/orders/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,17 @@ class BaseOrder extends EventEmitter {

rejected(reason) {
this.rejectedReason = reason;
this.emitStatus();
this.status = states.REJECTED;
this.emitStatus();
console.log(new Date, 'sticky rejected', reason)
this.finish();
}

filled(price) {
this.status = states.FILLED;
this.emitStatus();

this.completed = true;

console.log(new Date, 'sticky filled')
this.finish(true);
}

Expand Down

0 comments on commit a143345

Please sign in to comment.