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. 3
      discord/client.py

3
discord/client.py

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

Loading…
Cancel
Save