Auto close bot HTTP-connections.

This commit is contained in:
Alex Root Junior 2018-03-01 19:39:52 +02:00
parent f185f69e8d
commit 8433c4cc4a

View file

@ -39,6 +39,8 @@ async def _shutdown(dispatcher: Dispatcher, callback=None):
await dispatcher.storage.close()
await dispatcher.storage.wait_closed()
await dispatcher.bot.close()
async def _wh_shutdown(app):
callback = app.get('_shutdown_callback', None)