Remove a blocking while loop that wasn't removed when the code to
return PACKET_EAGAIN was added, but should have been.
This commit is contained in:
parent
6ac790a477
commit
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 */
|
/* Allow channel freeing even when the socket has lost its connection */
|
||||||
if (!channel->local.close && (session->socket_state == LIBSSH2_SOCKET_CONNECTED)) {
|
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) {
|
if (rc == PACKET_EAGAIN) {
|
||||||
return PACKET_EAGAIN;
|
return PACKET_EAGAIN;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user