mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Initial connections might be faster.
This commit is contained in:
parent
3793b0b7fa
commit
4f4e41f2eb
|
@ -803,6 +803,10 @@ void adjustRates()
|
||||||
uint64_t temp_time = current_time();
|
uint64_t temp_time = current_time();
|
||||||
for(i = 0; i < MAX_CONNECTIONS; ++i)
|
for(i = 0; i < MAX_CONNECTIONS; ++i)
|
||||||
{
|
{
|
||||||
|
if(connections[i].status == 1 || connections[i].status == 2)
|
||||||
|
{
|
||||||
|
connections[i].SYNC_rate = MAX_SYNC_RATE;
|
||||||
|
}
|
||||||
if(connections[i].status == 3)
|
if(connections[i].status == 3)
|
||||||
{
|
{
|
||||||
if(sendqueue(i) != 0)
|
if(sendqueue(i) != 0)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user