Skip to content

Commit

Permalink
set closing future result
Browse files Browse the repository at this point in the history
Solve deadlock when closing the connection
  • Loading branch information
unkcpz committed Dec 20, 2024
1 parent 120965c commit f4da0ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aiormq/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,7 @@ async def _on_close(
await asyncio.gather(
self._reader_task, self._writer_task, return_exceptions=True,
)
self.closing.set_result('done')

@property
def server_capabilities(self) -> ArgumentsType:
Expand Down

0 comments on commit f4da0ad

Please sign in to comment.