summaryrefslogtreecommitdiffstats
path: root/vnc
diff options
context:
space:
mode:
Diffstat (limited to 'vnc')
-rw-r--r--vnc/vnc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnc/vnc.c b/vnc/vnc.c
index cf47b94e..bd91b0d8 100644
--- a/vnc/vnc.c
+++ b/vnc/vnc.c
@@ -59,7 +59,7 @@ lib_recv(struct vnc* v, char* data, int len)
{
return 1;
}
- g_sleep(1);
+ g_tcp_can_recv(v->sck, 10);
}
else
{
@@ -102,7 +102,7 @@ lib_send(struct vnc* v, char* data, int len)
{
return 1;
}
- g_sleep(1);
+ g_tcp_can_send(v->sck, 10);
}
else
{