Browse Source

update refresh time on confirm

miguelfreitas
Denis Ryabov 11 years ago
parent
commit
847659f7dd
  1. 3
      libtorrent/src/kademlia/node.cpp

3
libtorrent/src/kademlia/node.cpp

@ -311,8 +311,9 @@ namespace @@ -311,8 +311,9 @@ namespace
void putData_confirm(entry::list_type const& values_list, dht_storage_item& item)
{
if( !values_list.empty() ) {
if( !item.confirmed && !values_list.empty() ) {
item.confirmed = true;
item.next_refresh_time = time_now() + minutes(60);
}
}

Loading…
Cancel
Save