Throttle auto expedition leader changes (#1293)

This fixes unnecessary leader processing on mass dzquits

Also marks leader dirty for empty expeditions in case something goes
wrong (shouldn't be possible after 62e480fe)
This commit is contained in:
hg
2021-03-16 01:01:48 -04:00
committed by GitHub
parent 0d12bf0b1f
commit 18a3ff5f12
4 changed files with 27 additions and 6 deletions
+1
View File
@@ -145,6 +145,7 @@ void ExpeditionState::Process()
else
{
it->CheckExpireWarning();
it->CheckLeader();
}
it = is_deleted ? m_expeditions.erase(it) : it + 1;