From eedc30e7b9f454bdd69a24e19e09ccf8215806c5 Mon Sep 17 00:00:00 2001 From: oblivion Date: Tue, 18 Sep 2018 08:45:40 +0000 Subject: [PATCH] SshShell: Resize now waits correctly. git-svn-id: svn://ultimatepp.org/upp/trunk@12283 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/SSH/Shell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uppsrc/Core/SSH/Shell.cpp b/uppsrc/Core/SSH/Shell.cpp index e55039dc9..315c470fc 100644 --- a/uppsrc/Core/SSH/Shell.cpp +++ b/uppsrc/Core/SSH/Shell.cpp @@ -116,7 +116,8 @@ void SshShell::Resize() int n = 0; do { n = SetPtySz(psize); - Wait(); + if(n < 0) + Wait(); } while(!IsTimeout() && !IsEof() && n < 0); resized = false;