diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-20 22:22:17 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-20 22:22:17 -0400 |
commit | 4f4e41f2eb7812678523060526292798be1c6e59 (patch) | |
tree | c45f5b92b90a2b6bf099af5b220398e5fe4b14d7 | |
parent | 3793b0b7faa3f5ae21e0ae2c6a7193c83ef32410 (diff) |
Initial connections might be faster.
-rw-r--r-- | core/Lossless_UDP.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Lossless_UDP.c b/core/Lossless_UDP.c index 710bcc4c..c4c464b6 100644 --- a/core/Lossless_UDP.c +++ b/core/Lossless_UDP.c | |||
@@ -803,6 +803,10 @@ void adjustRates() | |||
803 | uint64_t temp_time = current_time(); | 803 | uint64_t temp_time = current_time(); |
804 | for(i = 0; i < MAX_CONNECTIONS; ++i) | 804 | for(i = 0; i < MAX_CONNECTIONS; ++i) |
805 | { | 805 | { |
806 | if(connections[i].status == 1 || connections[i].status == 2) | ||
807 | { | ||
808 | connections[i].SYNC_rate = MAX_SYNC_RATE; | ||
809 | } | ||
806 | if(connections[i].status == 3) | 810 | if(connections[i].status == 3) |
807 | { | 811 | { |
808 | if(sendqueue(i) != 0) | 812 | if(sendqueue(i) != 0) |