aboutsummaryrefslogtreecommitdiff
path: root/src/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/channels.c')
-rw-r--r--src/channels.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/channels.c b/src/channels.c
index ce94225d..f447616f 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -1657,11 +1657,13 @@ static ssh_channel ssh_channel_accept(ssh_session session, int channeltype,
iterator = iterator->next;
}
}
+ if(t>0){
#ifdef _WIN32
- Sleep(50); /* 50ms */
+ Sleep(50); /* 50ms */
#else
- nanosleep(&ts, NULL);
+ nanosleep(&ts, NULL);
#endif
+ }
}
return NULL;