From 847659f7dda898197690cbfc1000bfd2e587067c Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Tue, 8 Jul 2014 15:18:22 +0400 Subject: [PATCH] update refresh time on confirm --- 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 fcc8790b..0f60df77 100644 --- a/libtorrent/src/kademlia/node.cpp +++ b/libtorrent/src/kademlia/node.cpp @@ -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); } }