update refresh time on confirm

This commit is contained in:
Denis Ryabov 2014-07-08 15:18:22 +04:00
parent 601e0422e4
commit 847659f7dd

View File

@ -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);
}
}