necouchman commented on a change in pull request #346:
URL: https://github.com/apache/guacamole-server/pull/346#discussion_r706167597
##########
File path: src/protocols/ssh/ssh.c
##########
@@ -439,6 +439,7 @@ void* ssh_client_thread(void* data) {
if (settings->server_alive_interval > 0) {
timeout = 0;
if (libssh2_keepalive_send(ssh_client->session->session, &timeout)
> 0)
+ pthread_mutex_unlock(&(ssh_client->term_channel_lock));
break;
Review comment:
You'll need to add the braces `{..}` for this `if` statement. By just
adding this line the code will then always execute the `break` if the
`settings->server_alive_interval` is greater than `0`, which is probably not
what we want.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]