exception fix

This commit is contained in:
kremsy authored and Steffen Schröder committed 2014-05-01 17:35:39 +02:00
1 parent cf12c8af43
commit 2db2c88554
2 files changed
+5 -4

No files matched your search

+3 -2
View File
@@ -192,8 +192,9 @@ class PlayerActions {
try {
$this->maniaControl->client->spectatorReleasePlayerSlot($target->login);
} catch(Exception $e) {
$this->maniaControl->chat->sendException($e, $admin->login);
return;
if($e->getMessage() != "The player is not a spectator"){
throw $e;
}
}
}
}