forked from premiere/premiere-libtorrent
fixed announce issue
This commit is contained in:
parent
3deec267f1
commit
d590938856
|
@ -43,6 +43,8 @@
|
|||
incoming connection
|
||||
* added more detailed instrumentation of the disk I/O thread
|
||||
|
||||
* fixed announce issue
|
||||
|
||||
0.15.3 release
|
||||
|
||||
* fixed announce bug where event=completed would not be sent if it violated the
|
||||
|
|
|
@ -422,10 +422,10 @@ namespace libtorrent
|
|||
{
|
||||
// if we're a seed and we haven't sent a completed
|
||||
// event, we need to let this announce through
|
||||
if (is_seed && !complete_sent) return true;
|
||||
bool need_send_complete = is_seed && !complete_sent;
|
||||
|
||||
return now >= next_announce
|
||||
&& now >= min_announce
|
||||
&& (now >= min_announce || need_send_complete)
|
||||
&& (fails < fail_limit || fail_limit == 0)
|
||||
&& !updating;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue