From dfa10203bb6d1c4a149159c24e6feb17c29e34c9 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Wed, 6 Jun 2007 00:15:49 +0000 Subject: [PATCH] peer flag lt fix --- libtorrent/src/policy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libtorrent/src/policy.cpp b/libtorrent/src/policy.cpp index 1cb1ed65d..61bdd5748 100755 --- a/libtorrent/src/policy.cpp +++ b/libtorrent/src/policy.cpp @@ -1007,9 +1007,9 @@ namespace libtorrent // because of the push_back() i = boost::prior(m_peers.end()); #ifndef TORRENT_DISABLE_ENCRYPTION - p.pe_support = (flags & 0x01); + if (flags & 0x01) p.pe_support = true; #endif - p.seed = (flags & 0x02); + if (flags & 0x02) i->seed = true; // try to send a DHT ping to this peer // as well, to figure out if it supports @@ -1037,7 +1037,7 @@ namespace libtorrent if (i->failcount > 0 && src != peer_info::dht) --i->failcount; - i->seed = (flags & 0x02); + if (flags & 0x02) i->seed = true; if (i->connection) {