GUACAMOLE-623: Start terminal once Kubernetes connection is ready (necessary since merge of GUACAMOLE-622).

This commit is contained in:
Michael Jumper 2018-09-26 22:05:46 -07:00
parent b0be808036
commit 7374b29364

View File

@ -64,6 +64,8 @@ static int guac_kubernetes_lws_callback(struct lws* wsi,
void* in, size_t length) { void* in, size_t length) {
guac_client* client = guac_kubernetes_lws_current_client; guac_client* client = guac_kubernetes_lws_current_client;
guac_kubernetes_client* kubernetes_client =
(guac_kubernetes_client*) client->data;
/* Do not handle any further events if connection is closing */ /* Do not handle any further events if connection is closing */
if (client->state != GUAC_CLIENT_RUNNING) { if (client->state != GUAC_CLIENT_RUNNING) {
@ -94,6 +96,9 @@ static int guac_kubernetes_lws_callback(struct lws* wsi,
guac_client_log(client, GUAC_LOG_INFO, guac_client_log(client, GUAC_LOG_INFO,
"Kubernetes connection successful."); "Kubernetes connection successful.");
/* Allow terminal to render */
guac_terminal_start(kubernetes_client->term);
/* Schedule check for pending messages in case messages were added /* Schedule check for pending messages in case messages were added
* to the outbound message buffer prior to the connection being * to the outbound message buffer prior to the connection being
* fully established */ * fully established */