From 6c1d0658febf96676f44a0a56ff3b1072ed89b18 Mon Sep 17 00:00:00 2001 From: kremsy Date: Tue, 23 Jun 2015 18:17:03 +0200 Subject: [PATCH] shortfixes --- core/Communication/CommunicationManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/Communication/CommunicationManager.php b/core/Communication/CommunicationManager.php index 3f456bf2..42928d0a 100644 --- a/core/Communication/CommunicationManager.php +++ b/core/Communication/CommunicationManager.php @@ -203,7 +203,7 @@ class CommunicationManager implements CallbackListener { } if (!$socketEnabled) { - unset ($this->socket); + $this->socket = null; } } @@ -281,7 +281,7 @@ class CommunicationManager implements CallbackListener { }); }); //TODO check if port is closed - $this->socket->listen($socketPort, getHostByName(getHostName())); + $this->socket->listen($socketPort, $this->maniaControl->getServer()->ip); Logger::log("[CommunicationManager] Socket " . getHostByName(getHostName()) . ":" . $this->socket->getPort() . " Successfully created!"); } catch (ConnectionException $e) {