exception fix
This commit is contained in:
parent
b462fe4817
commit
31659d50d0
@ -9,7 +9,7 @@ use ManiaControl\Commands\CommandListener;
|
|||||||
use ManiaControl\Formatter;
|
use ManiaControl\Formatter;
|
||||||
use ManiaControl\ManiaControl;
|
use ManiaControl\ManiaControl;
|
||||||
use ManiaControl\Players\Player;
|
use ManiaControl\Players\Player;
|
||||||
use Maniaplanet\DedicatedServer\Xmlrpc\Exception;
|
use Maniaplanet\DedicatedServer\InvalidArgumentException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapQueue Class
|
* MapQueue Class
|
||||||
@ -184,8 +184,7 @@ class MapQueue implements CallbackListener, CommandListener {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$this->maniaControl->client->chooseNextMap($map->fileName);
|
$this->maniaControl->client->chooseNextMap($map->fileName);
|
||||||
} catch(Exception $e) {
|
} catch(InvalidArgumentException $e) {
|
||||||
// TODO: is it even possible that an exception other than connection errors will be thrown? - remove try-catch?
|
|
||||||
//do nothing
|
//do nothing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user