don't leave old _wait_for_futs lying around

This commit is contained in:
jesopo 2020-06-13 00:28:27 +01:00
parent d16d0f04b0
commit 383d3acc8d

View file

@ -216,6 +216,7 @@ class Server(IServer):
done, pend = await asyncio.wait([line_aw, wait_for_fut], done, pend = await asyncio.wait([line_aw, wait_for_fut],
return_when=asyncio.FIRST_COMPLETED) return_when=asyncio.FIRST_COMPLETED)
self._wait_for_fut = None
if wait_for_fut.done(): if wait_for_fut.done():
new_line_aw = list(pend)[0] new_line_aw = list(pend)[0]