mirror of
https://github.com/Nick80835/microbot
synced 2025-08-29 05:29:16 +00:00
explicitly disconnect client
This commit is contained in:
parent
a50c6ab6d9
commit
e745e13212
@ -74,6 +74,7 @@ class MicroBot():
|
|||||||
logger.info("Stopping bot.")
|
logger.info("Stopping bot.")
|
||||||
|
|
||||||
await self.loader.aioclient.close()
|
await self.loader.aioclient.close()
|
||||||
|
await client.disconnect()
|
||||||
|
|
||||||
if exit_code is not None:
|
if exit_code is not None:
|
||||||
logger.info("Exiting with exit code: %i", exit_code)
|
logger.info("Exiting with exit code: %i", exit_code)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user