diff options
author | irungentoo <irungentoo@gmail.com> | 2014-12-24 10:02:53 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-12-24 10:02:53 -0500 |
commit | d8b0d2e19b2a1f312799da3e9efa34e98698db5b (patch) | |
tree | e148ddd16c82894a6d652178dac5d80d2d9ffc1d /toxcore/onion_client.c | |
parent | eb033755a024f715e625e46efbabff82a0deef5d (diff) |
Don't populate path nodes too much.
Diffstat (limited to 'toxcore/onion_client.c')
-rw-r--r-- | toxcore/onion_client.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/toxcore/onion_client.c b/toxcore/onion_client.c index fcc43328..288f5649 100644 --- a/toxcore/onion_client.c +++ b/toxcore/onion_client.c | |||
@@ -1266,8 +1266,6 @@ static void do_announce(Onion_Client *onion_c) | |||
1266 | } | 1266 | } |
1267 | } | 1267 | } |
1268 | 1268 | ||
1269 | #define NODE_POPULATE_TIMES 4 | ||
1270 | |||
1271 | void do_onion_client(Onion_Client *onion_c) | 1269 | void do_onion_client(Onion_Client *onion_c) |
1272 | { | 1270 | { |
1273 | unsigned int i; | 1271 | unsigned int i; |
@@ -1275,8 +1273,7 @@ void do_onion_client(Onion_Client *onion_c) | |||
1275 | if (onion_c->last_run == unix_time()) | 1273 | if (onion_c->last_run == unix_time()) |
1276 | return; | 1274 | return; |
1277 | 1275 | ||
1278 | for (i = 0; i < NODE_POPULATE_TIMES; ++i) | 1276 | populate_path_nodes(onion_c); |
1279 | populate_path_nodes(onion_c); | ||
1280 | 1277 | ||
1281 | do_announce(onion_c); | 1278 | do_announce(onion_c); |
1282 | 1279 | ||