Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
m5l14i11 committed Oct 9, 2024
1 parent ee8c88b commit ac947ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions coral/exchange/ws/_bybit.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ async def unsubscribe(self, topic: str):

if topic in self._subscriptions:
self._subscriptions.remove(topic)
if topic in self._topic_queues:
self._topic_queues.pop(topic)
if topic in self._topic_queues:
self._topic_queues.pop(topic)

async def get_message(self, topic: str):
if topic not in self._topic_queues:
Expand Down Expand Up @@ -292,6 +292,7 @@ async def _resubscribe_all(self):

async def _handle_reconnect(self):
if not self.ws:
logger.error("WebSocket connection error.")
return

if self._auth_event.is_set():
Expand Down

0 comments on commit ac947ab

Please sign in to comment.