mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
Fix from Oleksandr Shneyder
http://www.libssh.org/archive/libssh/2010-11/0000005.html
This commit is contained in:
@@ -1392,11 +1392,13 @@ static ssh_channel channel_accept(ssh_session session, int channeltype,
|
|||||||
iterator = iterator->next;
|
iterator = iterator->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(t>0){
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
Sleep(50); /* 50ms */
|
Sleep(50); /* 50ms */
|
||||||
#else
|
#else
|
||||||
nanosleep(&ts, NULL);
|
nanosleep(&ts, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user