Fix bug in login

This commit is contained in:
Tulir Asokan 2020-08-28 19:38:49 +03:00
parent ee7f6d44b0
commit 63dc8c04ea
1 changed files with 2 additions and 1 deletions

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