From 5cf976bbb22d50036a6e9fd22056371c6bbc4632 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Wed, 4 Nov 2015 23:37:35 +0200 Subject: [PATCH] Better fix for e6b7a429ea3330cc. --- src/core/bittorrent/trackerentry.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/bittorrent/trackerentry.cpp b/src/core/bittorrent/trackerentry.cpp index 9c8fbd676..506c565e8 100644 --- a/src/core/bittorrent/trackerentry.cpp +++ b/src/core/bittorrent/trackerentry.cpp @@ -61,7 +61,9 @@ int TrackerEntry::tier() const TrackerEntry::Status TrackerEntry::status() const { - if (m_nativeEntry.is_working()) + // libtorrent::announce_entry::is_working() returns + // true when the tracker hasn't been tried yet. + if (m_nativeEntry.verified && m_nativeEntry.is_working()) return Working; else if ((m_nativeEntry.fails == 0) && m_nativeEntry.updating) return Updating;