diff options
| author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-12-07 16:10:34 +0100 |
|---|---|---|
| committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-12-07 16:10:34 +0100 |
| commit | 59f029357663ff42ba0e9043dd53d5354e5f542d (patch) | |
| tree | 81ddeae74c843071d82b4b61dec5952a9bf69512 | |
| parent | 7a314d9149fb0e4c3db6d85fc811848f1e77c40f (diff) | |
| download | libssh-59f029357663ff42ba0e9043dd53d5354e5f542d.tar.gz libssh-59f029357663ff42ba0e9043dd53d5354e5f542d.tar.xz libssh-59f029357663ff42ba0e9043dd53d5354e5f542d.zip | |
Fix from Oleksandr Shneyder
http://www.libssh.org/archive/libssh/2010-11/0000005.html
| -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; |
