exception
This commit is contained in:
		
				
					committed by
					
						 Steffen Schröder
						Steffen Schröder
					
				
			
			
				
	
			
			
			
						parent
						
							8488ff4931
						
					
				
				
					commit
					d2959e7d90
				
			| @@ -16,7 +16,6 @@ use ManiaControl\Players\Player; | |||||||
| use ManiaControl\Players\PlayerManager; | use ManiaControl\Players\PlayerManager; | ||||||
| use ManiaControl\Plugins\PluginManager; | use ManiaControl\Plugins\PluginManager; | ||||||
| use ManiaControl\Server\Server; | use ManiaControl\Server\Server; | ||||||
| use ManiaControl\Server\ServerCommands; |  | ||||||
| use ManiaControl\Settings\SettingManager; | use ManiaControl\Settings\SettingManager; | ||||||
| use ManiaControl\Statistics\StatisticManager; | use ManiaControl\Statistics\StatisticManager; | ||||||
| use Maniaplanet\DedicatedServer\Connection; | use Maniaplanet\DedicatedServer\Connection; | ||||||
| @@ -210,10 +209,14 @@ class ManiaControl implements CommandListener { | |||||||
| 		$this->chat->sendInformation('ManiaControl shutting down.'); | 		$this->chat->sendInformation('ManiaControl shutting down.'); | ||||||
|  |  | ||||||
| 		// Hide manialinks | 		// Hide manialinks | ||||||
|  | 		try { | ||||||
| 			$this->client->sendHideManialinkPage(); | 			$this->client->sendHideManialinkPage(); | ||||||
|  |  | ||||||
| 			// Close the client connection | 			// Close the client connection | ||||||
| 			$this->client->delete($this->server->ip, $this->server->port); | 			$this->client->delete($this->server->ip, $this->server->port); | ||||||
|  | 		} catch(\Exception $e) { | ||||||
|  | 			//do nothing | ||||||
|  | 		} | ||||||
|  |  | ||||||
| 		$this->log('Quitting ManiaControl!'); | 		$this->log('Quitting ManiaControl!'); | ||||||
| 		exit(); | 		exit(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user