Skip to content

Commit

Permalink
Merge pull request #129 from ic-dev21/main
Browse files Browse the repository at this point in the history
  • Loading branch information
valleedelisle authored Oct 4, 2023
2 parents 675ea9b + cdbf950 commit 2c4af79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyhilo/websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ async def _clean_queue(self) -> None:

async def async_disconnect(self) -> None:
"""Disconnect from the websocket server."""
self._clean_queue()
await self._clean_queue()
if not self.connected:
return

Expand All @@ -323,7 +323,7 @@ async def async_listen(self) -> None:
finally:
LOG.info("Websocket: Listen completed; cleaning up")
self._watchdog.cancel()
self._clean_queue()
await self._clean_queue()

for callback in self._disconnect_callbacks:
schedule_callback(callback)
Expand Down

0 comments on commit 2c4af79

Please sign in to comment.