From 40803b910c23741e8684db62e8b700f724570200 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Mon, 28 Oct 2013 18:58:29 -0200 Subject: [PATCH] improve last commit: only announce to local dht tracker if we ever connected to peer. --- libtorrent/src/torrent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtorrent/src/torrent.cpp b/libtorrent/src/torrent.cpp index 2ef492f4..784fc626 100644 --- a/libtorrent/src/torrent.cpp +++ b/libtorrent/src/torrent.cpp @@ -2069,7 +2069,7 @@ namespace libtorrent for (; i != end; ++i) { policy::peer const* p = *i; - if( p->connectable && !p->banned && + if( p->connectable && !p->banned && p->last_connected && int(p->failcount) < settings().max_failcount ) { m_ses.m_dht->announce(name(), m_torrent_file->info_hash() , p->address(), p->port, p->seed, false