GUACAMOLE-1416: Merge fix unreleased terminal lock in ssh_client_thread

This commit is contained in:
Virtually Nick 2021-09-10 10:40:10 -04:00 committed by GitHub
commit 491be8382a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -438,8 +438,10 @@ void* ssh_client_thread(void* data) {
/* Send keepalive at configured interval */ /* Send keepalive at configured interval */
if (settings->server_alive_interval > 0) { if (settings->server_alive_interval > 0) {
timeout = 0; timeout = 0;
if (libssh2_keepalive_send(ssh_client->session->session, &timeout) > 0) if (libssh2_keepalive_send(ssh_client->session->session, &timeout) > 0) {
pthread_mutex_unlock(&(ssh_client->term_channel_lock));
break; break;
}
timeout *= 1000; timeout *= 1000;
} }
/* If keepalive is not configured, sleep for the default of 1 second */ /* If keepalive is not configured, sleep for the default of 1 second */