mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-09 22:37:55 +00:00
prevent flow of unconfirmed requests after twister start
This commit is contained in:
parent
1945adaddf
commit
601e0422e4
@ -767,7 +767,7 @@ void node_impl::load_storage(entry const* e) {
|
|||||||
|
|
||||||
// wait 1 minute (to load torrents, etc.)
|
// wait 1 minute (to load torrents, etc.)
|
||||||
// randomize refresh time
|
// randomize refresh time
|
||||||
item.next_refresh_time = now + minutes(1) + minutes(item.confirmed ? 60 : 1) * getRandom();
|
item.next_refresh_time = now + minutes(1) + minutes(60) * getRandom();
|
||||||
|
|
||||||
to_add.push_back(item);
|
to_add.push_back(item);
|
||||||
#ifdef ENABLE_DHT_ITEM_EXPIRE
|
#ifdef ENABLE_DHT_ITEM_EXPIRE
|
||||||
|
Loading…
Reference in New Issue
Block a user