Skip to content

Commit 42a839b

Browse files
committed
chore: remove unused code
1 parent fb12256 commit 42a839b

2 files changed

Lines changed: 0 additions & 38 deletions

File tree

src/matches/jobs/RestartDedicatedServer.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

src/matches/match-assistant/match-assistant.service.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -878,23 +878,6 @@ export class MatchAssistantService {
878878
);
879879
}
880880

881-
public async restartDedicatedServer(serverId: string) {
882-
this.logger.log(`[${serverId}] restarting server`);
883-
884-
try {
885-
const rcon = await this.rcon.connect(serverId);
886-
if (!rcon) {
887-
this.logger.warn(`[${serverId}] unable to restart server`);
888-
return;
889-
}
890-
891-
await rcon.send("sv_cheats 1; restart; sv_cheats 0");
892-
await this.rcon.disconnect(serverId);
893-
} catch (error) {
894-
this.logger.warn(`[${serverId}] unable to restart server`, error);
895-
}
896-
}
897-
898881
public async stopOnDemandServer(matchId: string, remove = false) {
899882
this.logger.log(`[${matchId}] stopping match servers`);
900883

0 commit comments

Comments
 (0)