diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-18 07:25:58 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-18 07:25:58 +0800 |
commit | e755ed927cef8352900187b5487881a3fa4847f1 (patch) | |
tree | ae175f01d3f1daa6a691e1f6d3fee72471512104 /packages/0x.js | |
parent | d3e03744cdbc12bd1956fd5d921fc2331e4ee5cf (diff) | |
download | dexon-sol-tools-e755ed927cef8352900187b5487881a3fa4847f1.tar.gz dexon-sol-tools-e755ed927cef8352900187b5487881a3fa4847f1.tar.zst dexon-sol-tools-e755ed927cef8352900187b5487881a3fa4847f1.zip |
Remove order on expiration
Diffstat (limited to 'packages/0x.js')
-rw-r--r-- | packages/0x.js/src/order_watcher/order_state_watcher.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/0x.js/src/order_watcher/order_state_watcher.ts b/packages/0x.js/src/order_watcher/order_state_watcher.ts index f21ad0bbe..bc61e415c 100644 --- a/packages/0x.js/src/order_watcher/order_state_watcher.ts +++ b/packages/0x.js/src/order_watcher/order_state_watcher.ts @@ -142,6 +142,7 @@ export class OrderStateWatcher { }; if (!_.isUndefined(this._orderByOrderHash[orderHash])) { // We need this check because we never remove the orders from expiration watcher + this.removeOrder(orderHash); (this._callbackIfExistsAsync as OnOrderStateChangeCallback)(orderState); } } |