mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
mute rfb_close_writer()
This commit is contained in:
parent
9409c41125
commit
36d0880a03
@ -40,7 +40,10 @@ async def rfb_close_writer(writer: asyncio.StreamWriter) -> bool:
|
||||
if not closing:
|
||||
writer.transport.abort() # type: ignore
|
||||
writer.close()
|
||||
try:
|
||||
await writer.wait_closed()
|
||||
except Exception:
|
||||
pass
|
||||
return (not closing)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user