oops was a loop

This commit is contained in:
əlemi 2022-05-05 00:15:23 +02:00
parent 838982c261
commit cde96c3cd5
No known key found for this signature in database
GPG key ID: BBCBFE5D7244634E

View file

@ -273,7 +273,7 @@ class Dispatcher:
await self.disconnect(block=False) await self.disconnect(block=False)
async def _up_worker(self, timeout=1): async def _up_worker(self, timeout=1):
while True: while self._dispatching:
try: try:
packet : Packet = await asyncio.wait_for(self._outgoing.get(), timeout=timeout) packet : Packet = await asyncio.wait_for(self._outgoing.get(), timeout=timeout)
except asyncio.TimeoutError: except asyncio.TimeoutError: