mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-12 13:35:31 +03:00
Merge pull request #2948 from cristian-ciobanu/ssh-web-console-crash
fix(console): keep SSH web console open after terminal resize
This commit is contained in:
commit
2fb7056cb9
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user