summaryrefslogtreecommitdiffstats
path: root/rdp
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2006-12-09 20:58:08 +0000
committerjsorg71 <jsorg71>2006-12-09 20:58:08 +0000
commit345f21c86d1138f725a59e5b75d153ab63282ab4 (patch)
tree5dcb376e63eb4e1988d06bed81c655fd14459489 /rdp
parentf9e6578ed9332c3bb0fab40d703058ad11988b83 (diff)
downloadxrdp-proprietary-345f21c86d1138f725a59e5b75d153ab63282ab4.tar.gz
xrdp-proprietary-345f21c86d1138f725a59e5b75d153ab63282ab4.zip
remove sleep
Diffstat (limited to 'rdp')
-rw-r--r--rdp/rdp_tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rdp/rdp_tcp.c b/rdp/rdp_tcp.c
index 0283ba1d..31ee0008 100644
--- a/rdp/rdp_tcp.c
+++ b/rdp/rdp_tcp.c
@@ -72,7 +72,7 @@ rdp_tcp_recv(struct rdp_tcp* self, struct stream* s, int len)
{
if (g_tcp_last_error_would_block(self->sck))
{
- g_sleep(1);
+ g_tcp_can_recv(self->sck, 10);
}
else
{
@@ -121,7 +121,7 @@ rdp_tcp_send(struct rdp_tcp* self, struct stream* s)
{
if (g_tcp_last_error_would_block(self->sck))
{
- g_sleep(1);
+ g_tcp_can_send(self->sck, 10);
}
else
{