From 6ad14f24a77e04f2fce01a39a60f9063e57d7735 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Sat, 7 Mar 2020 21:45:18 +0100 Subject: [PATCH] [fix] Use asyncio.ensure_future() instead of async() which disapear from Py 3.7 --- src/sakia/services/network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sakia/services/network.py b/src/sakia/services/network.py index 00f2033e..7c55ef45 100644 --- a/src/sakia/services/network.py +++ b/src/sakia/services/network.py @@ -290,7 +290,7 @@ class NetworkService(QObject): def run_ws2p_check(self): if not self._ws2p_heads_refreshing: self._ws2p_heads_refreshing = True - asyncio.async(self.check_ws2p_heads()) + asyncio.ensure_future(self.check_ws2p_heads()) async def check_ws2p_heads(self): await asyncio.sleep(5) -- GitLab