From 61b057175fa30b6e930148ac3737235f5abbc945 Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Tue, 8 Jul 2014 13:16:30 +0400 Subject: [PATCH] wait 1 minute before start refreshing --- libtorrent/src/kademlia/node.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libtorrent/src/kademlia/node.cpp b/libtorrent/src/kademlia/node.cpp index 2bb1f1da..75d03528 100644 --- a/libtorrent/src/kademlia/node.cpp +++ b/libtorrent/src/kademlia/node.cpp @@ -756,8 +756,9 @@ void node_impl::load_storage(entry const* e) { int ret = lazy_bdecode(item.p.data(), item.p.data() + item.p.size(), p, err, &pos, 10, 500); processEntryForHashtags(p); + // wait 1 minute (to load torrents, etc.) // randomize refresh time - item.next_refresh_time = now + minutes(item.confirmed ? 60 : 1) * getRandom(); + item.next_refresh_time = now + minutes(1) + minutes(item.confirmed ? 60 : 1) * getRandom(); to_add.push_back(item); #ifdef ENABLE_DHT_ITEM_EXPIRE