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:10:34 +01:00
parent 7a314d9149
commit 59f0293576

View File

@@ -1392,11 +1392,13 @@ static ssh_channel 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;