improved shutdown/quit code

This commit is contained in:
Steffen Schröder
2014-05-29 22:54:43 +02:00
parent 4f8542b854
commit 897630a95c
2 changed files with 12 additions and 9 deletions

View File

@ -6,7 +6,6 @@ use ManiaControl\Callbacks\Callbacks;
use ManiaControl\Files\FileUtil;
use ManiaControl\Plugins\PluginManager;
use ManiaControl\Update\UpdateManager;
use Maniaplanet\DedicatedServer\Connection;
/**
* Error and Exception Manager Class
@ -301,10 +300,7 @@ class ErrorHandler {
if ($this->maniaControl->client) {
try {
// Hide manialinks
$this->maniaControl->client->sendHideManialinkPage();
// Close the client connection
Connection::delete($this->maniaControl->client);
} catch (TransportException $e) {
$this->handleException($e, false);
}