Skip to content

Commit

Permalink
Fixed await/sync inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Dec 26, 2024
1 parent 2626e96 commit 22fcc31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pychonet/lib/udpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async def _send_periodically(self):
try:
while self._send_queue:
data, addr = self._send_queue.popleft()
bytes_sent = await self._sock_send(data, addr)
bytes_sent = self._sock_send(data, addr)
await self._throttle(bytes_sent, self._upload_speed)
finally:
self._send_event.clear()
Expand Down

0 comments on commit 22fcc31

Please sign in to comment.