Skip to content

Commit fdf7718

Browse files
committed
(misc) shutdown disconnection code
1 parent 047a356 commit fdf7718

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

aiocarrot/carrot.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ async def run(self) -> None:
105105
finally:
106106
logger.info('Shutting down...')
107107

108+
await self._channel.close()
109+
await self._connection.close()
110+
111+
logger.info('Good bye!')
112+
108113
async def _consumer_loop(self) -> None:
109114
"""
110115
The main event loop used by Carrot to receive new messages and pass them on to the handler

0 commit comments

Comments
 (0)