We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a22e5ff commit ab94030Copy full SHA for ab94030
app/services/gamebridge/GameServer.ts
@@ -7,7 +7,6 @@ import {
7
} from "websocket";
8
import { NodeSSH, SSHExecOptions } from "node-ssh";
9
import { RconResponse } from "./payloads/structures/index.js";
10
-import { WebhookClient } from "discord.js";
11
import GameBridge from "./GameBridge.js";
12
import sshConfig from "@/config/ssh.json" with { type: "json" };
13
@@ -128,6 +127,7 @@ export default class GameServer {
128
127
this.connection?.on("close", (code, desc) => {
129
this.discord.destroy();
130
console.log(`'${this.config.name}' Game Server disconnected - [${code}] ${desc}`);
+ delete this.bridge.servers[this.config.id];
131
});
132
133
console.log(`'${this.config.name}' Game Server connected`);
0 commit comments