From 2b1c979d7e12aa86db120fd002b936fe44f9e8b5 Mon Sep 17 00:00:00 2001 From: James Housley Date: Sun, 8 Jul 2007 15:37:44 +0000 Subject: [PATCH] Remove a blocking while loop that wasn't removed when the code to return PACKET_EAGAIN was added, but should have been. --- src/channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channel.c b/src/channel.c index 6ef5aca..b243519 100644 --- a/src/channel.c +++ b/src/channel.c @@ -1729,7 +1729,7 @@ LIBSSH2_API int libssh2_channel_free(LIBSSH2_CHANNEL *channel) /* Allow channel freeing even when the socket has lost its connection */ if (!channel->local.close && (session->socket_state == LIBSSH2_SOCKET_CONNECTED)) { - while ((rc = libssh2_channel_close(channel)) == PACKET_EAGAIN); + rc = libssh2_channel_close(channel); if (rc == PACKET_EAGAIN) { return PACKET_EAGAIN; }