Fix update_worker not being async
This commit is contained in:
parent
14feffce84
commit
301ba799cf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user