using shield_fg()

This commit is contained in:
Maxim Devaev
2022-08-07 19:18:23 +03:00
parent 1d4b39ef1b
commit fdc3edfa79
7 changed files with 16 additions and 30 deletions

View File

@@ -170,7 +170,7 @@ class KvmdClientWs:
if writer_task:
writer_task.cancel()
try:
await asyncio.shield(self.__ws.close())
await aiotools.shield_fg(self.__ws.close())
except Exception:
pass
finally: