From 301ba799cf90507dab9d573506f904a79f9657fe Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 9 Nov 2018 09:41:49 +0100 Subject: [PATCH] Fix update_worker not being async --- pyrogram/client/dispatcher/dispatcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/dispatcher/dispatcher.py b/pyrogram/client/dispatcher/dispatcher.py index 26a0011b..38b01fe9 100644 --- a/pyrogram/client/dispatcher/dispatcher.py +++ b/pyrogram/client/dispatcher/dispatcher.py @@ -108,9 +108,9 @@ class Dispatcher: self.groups[group].remove(handler) - def update_worker(self): + async def update_worker(self): while True: - update = self.updates.get() + update = await self.updates.get() if update is None: break