mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Don't populate path nodes too much.
This commit is contained in:
parent
eb033755a0
commit
d8b0d2e19b
|
@ -1266,8 +1266,6 @@ static void do_announce(Onion_Client *onion_c)
|
|||
}
|
||||
}
|
||||
|
||||
#define NODE_POPULATE_TIMES 4
|
||||
|
||||
void do_onion_client(Onion_Client *onion_c)
|
||||
{
|
||||
unsigned int i;
|
||||
|
@ -1275,7 +1273,6 @@ void do_onion_client(Onion_Client *onion_c)
|
|||
if (onion_c->last_run == unix_time())
|
||||
return;
|
||||
|
||||
for (i = 0; i < NODE_POPULATE_TIMES; ++i)
|
||||
populate_path_nodes(onion_c);
|
||||
|
||||
do_announce(onion_c);
|
||||
|
|
Loading…
Reference in New Issue
Block a user