aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/asyncio/windows_events.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/asyncio/windows_events.py')
-rw-r--r--Lib/asyncio/windows_events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/asyncio/windows_events.py b/Lib/asyncio/windows_events.py
index f311e463155..922594f1724 100644
--- a/Lib/asyncio/windows_events.py
+++ b/Lib/asyncio/windows_events.py
@@ -488,7 +488,7 @@ class IocpProactor:
future = self._register(ov, listener, finish_accept)
coro = accept_coro(future, conn)
- tasks.async(coro, loop=self._loop)
+ tasks.ensure_future(coro, loop=self._loop)
return future
def connect(self, conn, address):