toggle premiere flag off when all pieces available

This commit is contained in:
fake 2020-05-18 12:17:29 -07:00
parent 8b2b9816c9
commit 82dd578f95
1 changed files with 9 additions and 0 deletions

View File

@ -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
{