diff options
author | Devaev Maxim <[email protected]> | 2020-07-03 22:17:53 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-07-03 22:17:53 +0300 |
commit | 36d0880a0338e7aceb48093ee964f51241a9ce2e (patch) | |
tree | 6b43aa1ff5142d26db9111bc52dfa91280ae801d /kvmd/apps/vnc | |
parent | 9409c411250883537701e7d6beed7dbf1afd7d48 (diff) |
mute rfb_close_writer()
Diffstat (limited to 'kvmd/apps/vnc')
-rw-r--r-- | kvmd/apps/vnc/rfb/stream.py | 5 |
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) |