Browse Source

Add missing waiting for writer to drain

pull/14/head
Richard Neumann 3 years ago
parent
commit
1f503bd9e6
  1. 1
      rcon/source/async_rcon.py

1
rcon/source/async_rcon.py

@ -34,6 +34,7 @@ async def communicate(
return response
writer.write(bytes(Packet.make_command(frag_detect_cmd)))
await writer.drain()
while (successor := await Packet.aread(reader)).id == response.id:
response += successor

Loading…
Cancel
Save