no peers from tracker when stopping is no longer an error
This commit is contained in:
parent
fc0916d450
commit
2e4d370942
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue