Skip to content

Commit

Permalink
What happens if we just set the timout to 0 for WaitForMessage()?
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuehlner committed Nov 10, 2023
1 parent 5ff7fe1 commit 9ab06d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/protocols/vnc/vnc.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ static int guac_vnc_wait_for_messages(rfbClient* rfb_client, int timeout) {
if (rfb_client->buffered)
return 1;

// LOLNO
timeout = 0;

/* If no data on buffer, wait for data on socket */
fprintf(stderr, "About to WaitForMessage(%p, %i)\n", (void*) rfb_client, timeout);
int the_value = WaitForMessage(rfb_client, timeout);
Expand Down

0 comments on commit 9ab06d5

Please sign in to comment.