aboutsummaryrefslogtreecommitdiffstats
path: root/src/order_watcher/order_state_watcher.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 01:09:14 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 09:06:13 +0800
commit53c918cc785ee3769103acc3e15aa9275c9383d9 (patch)
tree5d4d74970318c98ec51fdaa53039c1b169bfde27 /src/order_watcher/order_state_watcher.ts
parent009f81fe4f8dd8ed6b671d309553a6d04edd90ca (diff)
downloaddexon-sol-tools-53c918cc785ee3769103acc3e15aa9275c9383d9.tar
dexon-sol-tools-53c918cc785ee3769103acc3e15aa9275c9383d9.tar.gz
dexon-sol-tools-53c918cc785ee3769103acc3e15aa9275c9383d9.tar.bz2
dexon-sol-tools-53c918cc785ee3769103acc3e15aa9275c9383d9.tar.lz
dexon-sol-tools-53c918cc785ee3769103acc3e15aa9275c9383d9.tar.xz
dexon-sol-tools-53c918cc785ee3769103acc3e15aa9275c9383d9.tar.zst
dexon-sol-tools-53c918cc785ee3769103acc3e15aa9275c9383d9.zip
Clear cache on unsubscribe
Diffstat (limited to 'src/order_watcher/order_state_watcher.ts')
-rw-r--r--src/order_watcher/order_state_watcher.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/order_watcher/order_state_watcher.ts b/src/order_watcher/order_state_watcher.ts
index c4914fc64..a19d6be9c 100644
--- a/src/order_watcher/order_state_watcher.ts
+++ b/src/order_watcher/order_state_watcher.ts
@@ -148,6 +148,8 @@ export class OrderStateWatcher {
throw new Error(ZeroExError.SubscriptionNotFound);
}
this._blockStore.stop();
+ this._balanceAndProxyAllowanceLazyStore.deleteAll();
+ this._orderFilledCancelledLazyStore.deleteAll();
delete this._callbackIfExistsAsync;
this._eventWatcher.unsubscribe();
}