Reverting (partially) ready message change - seems slower
This commit is contained in:
parent
859e739dae
commit
84d79fc2ba
@ -236,6 +236,19 @@ void guac_start_client(guac_client* client) {
|
|||||||
/* VNC Client Loop */
|
/* VNC Client Loop */
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
|
||||||
|
/* Handle server messages */
|
||||||
|
if (client->handle_messages) {
|
||||||
|
|
||||||
|
int retval = client->handle_messages(client);
|
||||||
|
if (retval) {
|
||||||
|
syslog(LOG_ERR, "Error handling server messages");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
guac_flush(io);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
wait_result = guac_instructions_waiting(io);
|
wait_result = guac_instructions_waiting(io);
|
||||||
if (wait_result > 0) {
|
if (wait_result > 0) {
|
||||||
|
|
||||||
@ -247,21 +260,8 @@ void guac_start_client(guac_client* client) {
|
|||||||
do {
|
do {
|
||||||
|
|
||||||
if (strcmp(instruction.opcode, "ready") == 0) {
|
if (strcmp(instruction.opcode, "ready") == 0) {
|
||||||
|
|
||||||
/* Handle server messages */
|
|
||||||
if (client->handle_messages) {
|
|
||||||
|
|
||||||
int retval = client->handle_messages(client);
|
|
||||||
if (retval) {
|
|
||||||
syslog(LOG_ERR, "Error handling server messages");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
guac_send_ready(io);
|
guac_send_ready(io);
|
||||||
guac_flush(io);
|
guac_flush(io);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (strcmp(instruction.opcode, "mouse") == 0) {
|
else if (strcmp(instruction.opcode, "mouse") == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user