summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-07-03 22:17:53 +0300
committerDevaev Maxim <[email protected]>2020-07-03 22:17:53 +0300
commit36d0880a0338e7aceb48093ee964f51241a9ce2e (patch)
tree6b43aa1ff5142d26db9111bc52dfa91280ae801d
parent9409c411250883537701e7d6beed7dbf1afd7d48 (diff)
mute rfb_close_writer()
-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)