mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-05-15 18:29:52 +00:00
Don't call close() if we've already been closed in Client.run
This commit is contained in:
parent
ad04fbeee4
commit
dce653a0eb
@ -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