summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_tcp.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2004-11-28 04:56:58 +0000
committerjsorg71 <jsorg71>2004-11-28 04:56:58 +0000
commitae38cee2f0b64f62cf569cc8b15eb18d1de7c9f0 (patch)
tree70d3a8333500a486a305c06c1359c3e292f259d3 /xrdp/xrdp_tcp.c
parent9c580f9a846f9db83508a1bd4b2d9a354d906fcf (diff)
downloadxrdp-proprietary-ae38cee2f0b64f62cf569cc8b15eb18d1de7c9f0.tar.gz
xrdp-proprietary-ae38cee2f0b64f62cf569cc8b15eb18d1de7c9f0.zip
added vnc mod
Diffstat (limited to 'xrdp/xrdp_tcp.c')
-rw-r--r--xrdp/xrdp_tcp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xrdp/xrdp_tcp.c b/xrdp/xrdp_tcp.c
index 23ff2338..fd263dfc 100644
--- a/xrdp/xrdp_tcp.c
+++ b/xrdp/xrdp_tcp.c
@@ -60,12 +60,16 @@ int xrdp_tcp_recv(struct xrdp_tcp* self, struct stream* s, int len)
while (len > 0)
{
if (g_is_term())
+ {
return 1;
+ }
rcvd = g_tcp_recv(self->sck, s->end, len, 0);
if (rcvd == -1)
{
if (g_tcp_last_error_would_block(self->sck))
+ {
g_sleep(1);
+ }
else
{
DEBUG((" error = -1 in xrdp_tcp_recv socket %d\n", self->sck))