From 7520d9c7b9336867df95c583b9968c940b72d889 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Tue, 2 Feb 2010 18:16:46 +0100 Subject: [PATCH] Handle timeout correctly --- libssh/channels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);