Skip to content

Commit 8a722ee

Browse files
committed
bug: fix non dedicated servers getting offline message
1 parent 69f00e4 commit 8a722ee

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

src/game-server-node/game-server-node.service.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -414,16 +414,7 @@ export class GameServerNodeService {
414414
});
415415
});
416416

417-
stream
418-
.on("error", (error) => {
419-
console.error("Update job error", error);
420-
})
421-
.on("close", async () => {
422-
console.info("Update job closed");
423-
});
424-
425417
stream.on("end", async () => {
426-
console.info("Update job completed");
427418
await this.hasura.mutation({
428419
update_game_server_nodes_by_pk: {
429420
__args: {
@@ -437,8 +428,6 @@ export class GameServerNodeService {
437428
update_status: true,
438429
},
439430
});
440-
441-
console.info("Update job completed");
442431
});
443432
} catch (error) {
444433
console.warn("unable to monitor update status", error);

src/game-server-node/jobs/MarkGameServerOffline.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,14 @@ export class MarkGameServerOffline extends WorkerHost {
3030
},
3131
},
3232
label: true,
33+
is_dedicated: true,
3334
},
3435
});
3536

37+
if (!update_servers_by_pk.is_dedicated) {
38+
return;
39+
}
40+
3641
this.notifications.send("DedicatedServerStatus", {
3742
message: `Dedicated Server (${update_servers_by_pk.label || job.data.serverId}) is Offline.`,
3843
title: "Dedicated Server Offline",

0 commit comments

Comments
 (0)