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