Core/Dungeon Finder: Remove disconnected players from LFG queue

Fix LFG queue issues by removing disconnected players from LFG queue and their party with them.
This commit is contained in:
jackpoz
2015-09-01 22:33:55 +02:00
parent fc17d1a941
commit b7f9836d22
4 changed files with 6 additions and 3 deletions

View File

@@ -44,6 +44,8 @@ void LFGPlayerScript::OnLogout(Player* player)
player->GetSession()->SendLfgLfrList(false);
sLFGMgr->LeaveLfg(player->GetGUID());
}
else if (player->GetSession()->PlayerDisconnected())
sLFGMgr->LeaveLfg(player->GetGUID(), true);
}
void LFGPlayerScript::OnLogin(Player* player, bool /*loginFirst*/)