Fix bug in login

This commit is contained in:
Tulir Asokan 2020-08-28 19:38:49 +03:00
parent ee7f6d44b0
commit 63dc8c04ea

View File

@ -81,7 +81,8 @@ class Client(RPCClient):
try:
while True:
await event.wait()
while item := data.popleft():
while len(data) > 0:
item = data.popleft()
if item is None:
return
yield item