mirror of https://github.com/macssh/macssh.git
delay to empty output buffer
This commit is contained in:
parent
36ba0fbb05
commit
dbed1735a1
|
@ -711,7 +711,8 @@ short netpush(short pnum)
|
|||
lshcontext *context = (lshcontext *)wind->sshdata.context;
|
||||
TRACEN(PRINTF("netpush\n"));
|
||||
if (context) {
|
||||
if (context->_gConsoleInBufLen) {
|
||||
unsigned long startTicks = LMGetTicks();
|
||||
while ( context->_gConsoleInBufLen && LMGetTicks() - startTicks < 15 ) {
|
||||
ssh2_sched();
|
||||
}
|
||||
return context->_gConsoleInBufLen;
|
||||
|
|
Loading…
Reference in New Issue