GUACAMOLE-203: Add a few more comments to code.

This commit is contained in:
Nick Couchman 2017-05-31 08:30:56 -04:00 committed by Nick Couchman
parent 8ab7e56972
commit 75019f5e4b

View File

@ -346,10 +346,12 @@ void* ssh_client_thread(void* data) {
/* Send keepalive at configured interval */
if (settings->server_alive_interval > 0) {
alive = libssh2_keepalive_send(ssh_client->session->session, &timeout);
/* Sending the keepalive failed, so we break out */
if (alive > 0)
break;
sleep = timeout * 1000;
}
/* If keepalive is not configured, sleep for the default of 1 second */
else
sleep = 1000;