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:
|
||||
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…
x
Reference in New Issue
Block a user