mirror of
https://github.com/TokTok/c-toxcore
synced 2026-10-23 19:32:22 +00:00
Don't populate path nodes too much.
This commit is contained in:
1 file changed
+1
-4
@@ -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,8 +1273,7 @@ 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);
|
||||
populate_path_nodes(onion_c);
|
||||
|
||||
do_announce(onion_c);
|
||||
|
||||
|
||||
Reference in new issue
Block a user