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;