Browse Source

Don't call close() if we've already been closed in Client.run

v1.4.x
alkatar21 5 years ago
committed by Rapptz
parent
commit
85a51c1464
  1. 1
      discord/client.py

1
discord/client.py

@ -657,6 +657,7 @@ class Client:
try:
await self.start(*args, **kwargs)
finally:
if not self.is_closed():
await self.close()
def stop_loop_on_completion(f):

Loading…
Cancel
Save