1
1

Remove a blocking while loop that wasn't removed when the code to

return PACKET_EAGAIN was added, but should have been.
Этот коммит содержится в:
James Housley 2007-07-08 15:37:44 +00:00
родитель 6ac790a477
Коммит 2b1c979d7e

Просмотреть файл

@ -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;
}