Change second run_until_complete to not be empty.
This should stop the infinite loops in some cases.
This commit is contained in:
parent
0c8d5ee863
commit
b8eab5f656
@ -470,7 +470,10 @@ class Client:
|
|||||||
gathered = asyncio.gather(*pending)
|
gathered = asyncio.gather(*pending)
|
||||||
try:
|
try:
|
||||||
gathered.cancel()
|
gathered.cancel()
|
||||||
self.loop.run_forever()
|
self.loop.run_until_complete(gathered)
|
||||||
|
|
||||||
|
# we want to retrieve any exceptions to make sure that
|
||||||
|
# they don't nag us about it being un-retrieved.
|
||||||
gathered.exception()
|
gathered.exception()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user