/** * Free the match for the lobby */ protected function end() { \ManiaLive\Utilities\Logger::debug('end()'); $this->showTansfertLabel(null, -50); foreach ($this->storage->players as $player) { try { $this->connection->sendOpenLink((string) $player->login, '#qjoin=' . $this->lobby->backLink, 1); } catch (\DedicatedApi\Xmlrpc\Exception $e) { //do nothing } } $this->connection->cleanGuestList(); $this->match = null; $this->matchId = null; $this->matchMakingService->updateServerCurrentMatchId(null, $this->storage->serverLogin, $this->scriptName, $this->titleIdString); $this->connection->setForcedTeams(false); $this->sleep(); }