delay to empty output buffer

This commit is contained in:
chombier 2001-03-18 00:29:27 +00:00
parent 36ba0fbb05
commit dbed1735a1
1 changed files with 2 additions and 1 deletions

View File

@ -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;