Some cleanup to player net session handling for connect/disconnect

This commit is contained in:
Dylan K. Taylor
2019-03-14 14:32:27 +00:00
parent fa7a4dc22e
commit 26a5d97499
8 changed files with 187 additions and 80 deletions

View File

@ -143,7 +143,7 @@ class RakLibInterface implements ServerInstance, AdvancedNetworkInterface{
}
public function openSession(int $sessionId, string $address, int $port, int $clientID) : void{
$session = new NetworkSession($this->server, $this, $address, $port);
$session = new NetworkSession($this->server, $this->network->getSessionManager(), $this, $address, $port);
$this->sessions[$sessionId] = $session;
$this->identifiers[spl_object_id($session)] = $sessionId;
}