diff options
Diffstat (limited to 'libssh')
| -rw-r--r-- | libssh/channels.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libssh/channels.c b/libssh/channels.c index 5ca3c574..d43ccaf1 100644 --- a/libssh/channels.c +++ b/libssh/channels.c @@ -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; |
