GUACAMOLE-203: Add a few more comments to code.
This commit is contained in:
parent
8ab7e56972
commit
75019f5e4b
@ -346,10 +346,12 @@ 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) {
|
||||||
alive = libssh2_keepalive_send(ssh_client->session->session, &timeout);
|
alive = libssh2_keepalive_send(ssh_client->session->session, &timeout);
|
||||||
|
/* Sending the keepalive failed, so we break out */
|
||||||
if (alive > 0)
|
if (alive > 0)
|
||||||
break;
|
break;
|
||||||
sleep = timeout * 1000;
|
sleep = timeout * 1000;
|
||||||
}
|
}
|
||||||
|
/* If keepalive is not configured, sleep for the default of 1 second */
|
||||||
else
|
else
|
||||||
sleep = 1000;
|
sleep = 1000;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user