summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kvmd/apps/vnc/rfb/stream.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/kvmd/apps/vnc/rfb/stream.py b/kvmd/apps/vnc/rfb/stream.py
index 0382b354..f08da178 100644
--- a/kvmd/apps/vnc/rfb/stream.py
+++ b/kvmd/apps/vnc/rfb/stream.py
@@ -40,7 +40,10 @@ async def rfb_close_writer(writer: asyncio.StreamWriter) -> bool:
if not closing:
writer.transport.abort() # type: ignore
writer.close()
- await writer.wait_closed()
+ try:
+ await writer.wait_closed()
+ except Exception:
+ pass
return (not closing)