/** * Closes all open connections */ public function Disconnect() { $this->Connected = false; $this->Socket->Close(); if ($this->Rcon) { $this->Rcon->Close(); } }
/** * Closes all open connections */ public function Disconnect() { $this->Connected = false; $this->Challenge = 0; $this->Buffer->Reset(); $this->Socket->Close(); if ($this->Rcon) { $this->Rcon->Close(); $this->Rcon = null; } }