We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97fbbd6 commit 1d1153fCopy full SHA for 1d1153f
1 file changed
client_examples/ppmtest.c
@@ -102,9 +102,11 @@ main(int argc, char **argv)
102
while (time(NULL)-t<5) {
103
static int i=0;
104
fprintf(stderr,"\r%d",i++);
105
- if(WaitForMessage(client,50)<0)
+ int n = WaitForMessage(client,50);
106
+ if(n < 0)
107
break;
- if(!HandleRFBServerMessage(client))
108
+ if(n)
109
+ if(!HandleRFBServerMessage(client))
110
111
}
112
0 commit comments