mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-08 04:38:42 +00:00
Don't call close() if we've already been closed in Client.run
This commit is contained in:
parent
b3e0752af4
commit
85a51c1464
@ -657,7 +657,8 @@ class Client:
|
|||||||
try:
|
try:
|
||||||
await self.start(*args, **kwargs)
|
await self.start(*args, **kwargs)
|
||||||
finally:
|
finally:
|
||||||
await self.close()
|
if not self.is_closed():
|
||||||
|
await self.close()
|
||||||
|
|
||||||
def stop_loop_on_completion(f):
|
def stop_loop_on_completion(f):
|
||||||
loop.stop()
|
loop.stop()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user