diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-11-12 14:13:00 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-11-12 14:13:00 +0000 |
| commit | aef50efed072fd7bbbcceae8fdfde7f0570a1a40 (patch) | |
| tree | a5848d2943968c578790ddf05eb2b20f3c1fa73e /src/AnnounceList.h | |
| parent | 7c41d11be325a2f85108a28a2111353ad0e208b4 (diff) | |
2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Do not rotate tiers in announce-list.
* src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
AnnounceList::allTiersFailed() used instead to detect whether
all
tiers are tried and failed.
* test/DefaultBtAnnounceTest.cc
* src/AnnounceList.{h, cc}: If all tiers are tried and failed
then
allTiersFailed() returns true. To reset tier pointer, call
resetTier();
* test/AnnounceListTest.cc
* src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx
catch
clause. Catch RecoverableException instead of DlRetryEx instead.
Diffstat (limited to 'src/AnnounceList.h')
| -rw-r--r-- | src/AnnounceList.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/AnnounceList.h b/src/AnnounceList.h index c0123d67..998953f5 100644 --- a/src/AnnounceList.h +++ b/src/AnnounceList.h @@ -115,6 +115,10 @@ public: */ void moveToStoppedAllowedTier(); void moveToCompletedAllowedTier(); + + bool allTiersFailed() const; + + void resetTier(); }; #endif // _D_ANNOUNCE_LIST_H_ |
