From 63dc8c04ea53300d43946711f62956ec2fc2cdbb Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 28 Aug 2020 19:38:49 +0300 Subject: [PATCH] Fix bug in login --- mautrix_amp/rpc/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mautrix_amp/rpc/client.py b/mautrix_amp/rpc/client.py index 11a8cfa..29a4335 100644 --- a/mautrix_amp/rpc/client.py +++ b/mautrix_amp/rpc/client.py @@ -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