diff --git a/application/core/Maps/MapList.php b/application/core/Maps/MapList.php index bb733ad6..ed5521ef 100644 --- a/application/core/Maps/MapList.php +++ b/application/core/Maps/MapList.php @@ -23,6 +23,7 @@ use ManiaControl\Manialinks\ManialinkPageAnswerListener; use ManiaControl\Players\Player; use ManiaControl\Utils\ColorUtil; use ManiaControl\Utils\Formatter; +use Maniaplanet\DedicatedServer\Xmlrpc\ChangeInProgressException; use Maniaplanet\DedicatedServer\Xmlrpc\NextMapException; use Maniaplanet\DedicatedServer\Xmlrpc\NotInListException; use MCTeam\CustomVotesPlugin; @@ -632,9 +633,12 @@ class MapList implements ManialinkPageAnswerListener, CallbackListener { try { $this->maniaControl->client->JumpToMapIdent($map->uid); - } catch (NextMapException $e) { + } catch (NextMapException $exception) { return; - } catch (NotInListException $e) { + } catch (NotInListException $exception) { + return; + } catch (ChangeInProgressException $exception) { + // TODO: delay skip if change is in progress return; }