Fix update_worker not being async

This commit is contained in:
Dan 2018-11-09 09:41:49 +01:00
parent 14feffce84
commit 301ba799cf

View File

@ -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