wait 1 minute before start refreshing

This commit is contained in:
Denis Ryabov 2014-07-08 13:16:30 +04:00
parent 43c84cae6c
commit 61b057175f

View File

@ -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); int ret = lazy_bdecode(item.p.data(), item.p.data() + item.p.size(), p, err, &pos, 10, 500);
processEntryForHashtags(p); processEntryForHashtags(p);
// wait 1 minute (to load torrents, etc.)
// randomize refresh time // 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); to_add.push_back(item);
#ifdef ENABLE_DHT_ITEM_EXPIRE #ifdef ENABLE_DHT_ITEM_EXPIRE