From dc275c0b29150658ec88cb7b2b156ca8ad7931c6 Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Tue, 8 Jul 2014 01:44:27 +0400 Subject: [PATCH] fix saving of dht item --- libtorrent/src/kademlia/node.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libtorrent/src/kademlia/node.cpp b/libtorrent/src/kademlia/node.cpp index a08322fd..376126c8 100644 --- a/libtorrent/src/kademlia/node.cpp +++ b/libtorrent/src/kademlia/node.cpp @@ -698,8 +698,7 @@ bool node_impl::save_storage(entry &save) const { entry_item["sig_user"] = item.sig_user; if( 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); } }