forked from premiere/premiere-libtorrent
toggle premiere flag off when all pieces available
This commit is contained in:
parent
8b2b9816c9
commit
82dd578f95
|
@ -2318,6 +2318,15 @@ bool is_downloading_state(int const st)
|
|||
p->announce_piece(index);
|
||||
p->send_suggest(index);
|
||||
}
|
||||
bool all_available = true;
|
||||
for (auto& x: premiere_map) {
|
||||
if (x.second == true) {
|
||||
all_available = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
premiere_mode = !all_available;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue