From d2959e7d901bcf23f5524769328bf5f5fccafb2c Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 1 Feb 2014 21:37:38 +0100 Subject: [PATCH] exception --- application/core/ManiaControl.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/application/core/ManiaControl.php b/application/core/ManiaControl.php index f881339c..42faf5b1 100644 --- a/application/core/ManiaControl.php +++ b/application/core/ManiaControl.php @@ -16,7 +16,6 @@ use ManiaControl\Players\Player; use ManiaControl\Players\PlayerManager; use ManiaControl\Plugins\PluginManager; use ManiaControl\Server\Server; -use ManiaControl\Server\ServerCommands; use ManiaControl\Settings\SettingManager; use ManiaControl\Statistics\StatisticManager; use Maniaplanet\DedicatedServer\Connection; @@ -210,10 +209,14 @@ class ManiaControl implements CommandListener { $this->chat->sendInformation('ManiaControl shutting down.'); // Hide manialinks - $this->client->sendHideManialinkPage(); + try { + $this->client->sendHideManialinkPage(); - // Close the client connection - $this->client->delete($this->server->ip, $this->server->port); + // Close the client connection + $this->client->delete($this->server->ip, $this->server->port); + } catch(\Exception $e) { + //do nothing + } $this->log('Quitting ManiaControl!'); exit();