diff --git a/src/services/PriceFeed/ws/PriceFeedSubscription.ts b/src/services/PriceFeed/ws/PriceFeedSubscription.ts index 39d8516..4530915 100644 --- a/src/services/PriceFeed/ws/PriceFeedSubscription.ts +++ b/src/services/PriceFeed/ws/PriceFeedSubscription.ts @@ -107,6 +107,7 @@ export default class PriceFeedSubscription { + if (this.heartbeatInterval) clearInterval(this.heartbeatInterval); if (e.code !== 4000) this.init(); }; @@ -116,7 +117,6 @@ export default class PriceFeedSubscription