From ec7f2f96d341d8a0580e15a0e62ac2c77fbbb1d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Mon, 23 Jun 2014 23:11:16 +0200 Subject: [PATCH] catch change in progress exception --- application/core/Maps/MapList.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; }