diff options
Diffstat (limited to 'libvncclient/sockets.c')
| -rw-r--r-- | libvncclient/sockets.c | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/libvncclient/sockets.c b/libvncclient/sockets.c index e9a4b53..a4caaa5 100644 --- a/libvncclient/sockets.c +++ b/libvncclient/sockets.c @@ -150,6 +150,11 @@ ReadFromRFBServer(rfbClient* client, char *out, unsigned int n)  	  errno=WSAGetLastError();  #endif  	  if (errno == EWOULDBLOCK || errno == EAGAIN) { +#ifndef WIN32 +        usleep (10000); +#else +	 Sleep (10); +#endif  	    /* TODO:  	       ProcessXtEvents();  	    */ @@ -191,6 +196,11 @@ ReadFromRFBServer(rfbClient* client, char *out, unsigned int n)  	  errno=WSAGetLastError();  #endif  	  if (errno == EWOULDBLOCK || errno == EAGAIN) { +#ifndef WIN32 +        usleep (10000); +#else +	 Sleep (10); +#endif  	    /* TODO:  	       ProcessXtEvents();  	    */  | 
