Browse Source

fix saving of dht item

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

3
libtorrent/src/kademlia/node.cpp

@ -698,8 +698,7 @@ bool node_impl::save_storage(entry &save) const {
entry_item["sig_user"] = item.sig_user; entry_item["sig_user"] = item.sig_user;
if( item.local_add_time ) if( item.local_add_time )
entry_item["local_add_time"] = item.local_add_time; entry_item["local_add_time"] = item.local_add_time;
if( item.confirmed ) entry_item["confirmed"] = item.confirmed ? 0 : 1;
entry_item["confirmed"] = item.confirmed ? 0 : 1;
save_list.list().push_back(entry_item); save_list.list().push_back(entry_item);
} }
} }

Loading…
Cancel
Save