set future on awaited self.send() after we've processed for session state

This commit is contained in:
jesopo 2020-04-19 13:11:06 +01:00
parent 47223c257c
commit c4019e6242

View file

@ -192,9 +192,9 @@ class Server(IServer):
await self._writer.drain()
for line in lines:
line.future.set_result(line)
await self._on_write_line(line.line)
await self.line_send(line.line)
line.future.set_result(line)
return [l.line for l in lines]