add missing await

This commit is contained in:
Jeffrey C. Ollie 2022-07-07 16:39:54 -05:00
parent 9c62c2725a
commit 781eed7184

View file

@ -162,7 +162,7 @@ class RemoteOriginWriteProtocol(asyncio.DatagramProtocol):
# need to check block numbers
if len(datagram.payload) == self.block_size:
self.file.write(datagram.payload)
await self.file.write(datagram.payload)
self.retransmit_task = asyncio.create_task(
timed_caller(
itertools.chain((0,), self.timeout),