Skip to content
Snippets Groups Projects
Commit 6ad14f24 authored by Moul's avatar Moul
Browse files

[fix] Use asyncio.ensure_future() instead of async() which disapear from Py 3.7

parent 21569984
No related branches found
No related tags found
1 merge request!776Fixes: Ğ1 license file not included, deprecated method, CI trigger
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment