fix(console): keep SSH web console open after terminal resize

This commit is contained in:
Cristi 2026-10-07 00:21:03 +03:00
parent f051bf2505
commit 51f7d06fae

View File

@ -117,7 +117,11 @@ class AsyncioSSHServer:
try:
while True:
data = await process.stdin.read(READ_SIZE)
try:
data = await process.stdin.read(READ_SIZE)
except asyncssh.TerminalSizeChanged:
# The upstream serial stream has no terminal size to update.
continue
if not data:
break