GUACAMOLE-622: Start terminal for SSH only after SSH connection succeeds.

This commit is contained in:
Michael Jumper 2018-08-30 10:08:30 -07:00
parent 0b39b0fc5f
commit 4606607309

View File

@ -335,6 +335,7 @@ void* ssh_client_thread(void* data) {
/* Logged in */ /* Logged in */
guac_client_log(client, GUAC_LOG_INFO, "SSH connection successful."); guac_client_log(client, GUAC_LOG_INFO, "SSH connection successful.");
guac_terminal_start(ssh_client->term);
/* Start input thread */ /* Start input thread */
if (pthread_create(&(input_thread), NULL, ssh_input_thread, (void*) client)) { if (pthread_create(&(input_thread), NULL, ssh_input_thread, (void*) client)) {