shortfixes

This commit is contained in:
kremsy 2015-06-23 18:17:03 +02:00
parent 2271f809c2
commit 6c1d0658fe

View File

@ -203,7 +203,7 @@ class CommunicationManager implements CallbackListener {
} }
if (!$socketEnabled) { if (!$socketEnabled) {
unset ($this->socket); $this->socket = null;
} }
} }
@ -281,7 +281,7 @@ class CommunicationManager implements CallbackListener {
}); });
}); });
//TODO check if port is closed //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!"); Logger::log("[CommunicationManager] Socket " . getHostByName(getHostName()) . ":" . $this->socket->getPort() . " Successfully created!");
} catch (ConnectionException $e) { } catch (ConnectionException $e) {