Protect from unwanted client intents

This commit is contained in:
aqw42
2025-06-05 18:29:05 +02:00
parent 2e29024f84
commit ebf8861a61
+6
View File
@@ -197,6 +197,12 @@ export class GameServer {
);
return;
}
if (clientMsg.intent.type === "mark_disconnected") {
this.log.warn(
`Should not receive mark_disconnected intent from client`,
);
return;
}
this.addIntent(clientMsg.intent);
}
if (clientMsg.type === "ping") {