Remove a blocking while loop that wasn't removed when the code to
return PACKET_EAGAIN was added, but should have been.
Этот коммит содержится в:
родитель
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;
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user