mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
using shield_fg()
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user