no peers from tracker when stopping is no longer an error

This commit is contained in:
Arvid Norberg 2010-09-23 16:38:50 +00:00
parent fc0916d450
commit 2e4d370942
2 changed files with 4 additions and 1 deletions

View File

@ -43,6 +43,7 @@
incoming connection incoming connection
* added more detailed instrumentation of the disk I/O thread * added more detailed instrumentation of the disk I/O thread
* no peers from tracker when stopping is no longer an error
* improved web seed retry behavior * improved web seed retry behavior
* fixed announce issue * fixed announce issue

View File

@ -464,7 +464,9 @@ namespace libtorrent
lazy_entry const* ipv6_peers = 0; lazy_entry const* ipv6_peers = 0;
#endif #endif
if (peers_ent == 0 && ipv6_peers == 0) // if we didn't receive any peers. We don't care if we're stopping anyway
if (peers_ent == 0 && ipv6_peers == 0
&& tracker_req().event != tracker_request::stopped)
{ {
fail(error_code(errors::invalid_peers_entry), -1, "" fail(error_code(errors::invalid_peers_entry), -1, ""
, interval, min_interval); , interval, min_interval);