diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-02-02 18:16:46 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-02-02 18:16:46 +0100 |
commit | 7520d9c7b9336867df95c583b9968c940b72d889 (patch) | |
tree | 523f75a80255186dd38f6849b60a7c2898076601 /libssh | |
parent | 25772145172d28c67fc193440d6ce33747d32203 (diff) | |
download | libssh-7520d9c7b9336867df95c583b9968c940b72d889.tar.gz libssh-7520d9c7b9336867df95c583b9968c940b72d889.tar.xz libssh-7520d9c7b9336867df95c583b9968c940b72d889.zip |
Handle timeout correctly
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/channels.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/channels.c b/libssh/channels.c index c10369ee..c881bd0a 100644 --- a/libssh/channels.c +++ b/libssh/channels.c @@ -1464,7 +1464,7 @@ static ssh_channel channel_accept(ssh_session session, int channeltype, for (t = timeout_ms; t >= 0; t -= 50) { - ssh_handle_packets(session,-1); + ssh_handle_packets(session,50); if (session->ssh_message_list) { iterator = ssh_list_get_iterator(session->ssh_message_list); |