prevent exception

This commit is contained in:
Steffen Schröder 2014-06-14 18:07:18 +02:00
parent e60871903d
commit a8ae27eb64

View File

@ -120,7 +120,11 @@ class PlayerManager implements CallbackListener, TimerListener {
if ($playerItem->playerId <= 0) { if ($playerItem->playerId <= 0) {
continue; continue;
} }
try {
$detailedPlayerInfo = $this->maniaControl->client->getDetailedPlayerInfo($playerItem->login); $detailedPlayerInfo = $this->maniaControl->client->getDetailedPlayerInfo($playerItem->login);
} catch (UnknownPlayerException $exception) {
continue;
}
// Check if the Player is in a Team, to notify if its a TeamMode or not // Check if the Player is in a Team, to notify if its a TeamMode or not
if ($playerItem->teamId >= 0) { if ($playerItem->teamId >= 0) {