Fix from Oleksandr Shneyder

http://www.libssh.org/archive/libssh/2010-11/0000005.html
This commit is contained in:
Aris Adamantiadis
2010-12-07 16:13:40 +01:00
parent 0825abd03a
commit 2dba4839ad

View File

@@ -1657,11 +1657,13 @@ static ssh_channel ssh_channel_accept(ssh_session session, int channeltype,
iterator = iterator->next;
}
}
if(t>0){
#ifdef _WIN32
Sleep(50); /* 50ms */
Sleep(50); /* 50ms */
#else
nanosleep(&ts, NULL);
nanosleep(&ts, NULL);
#endif
}
}
return NULL;