Skip to content

Commit

Permalink
Merge pull request #1 from ic-dev21/test
Browse files Browse the repository at this point in the history
  • Loading branch information
ic-dev21 authored Oct 1, 2023
2 parents 838db0a + 19e13af commit cdbf950
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 cdbf950

Please sign in to comment.