Compare commits
1 commit
5ec9b899f0
...
e0f23f31d8
Author | SHA1 | Date | |
---|---|---|---|
e0f23f31d8 |
1 changed files with 3 additions and 2 deletions
|
@ -84,7 +84,8 @@ public class MatchWebsocketHandler extends JsonWebsocketHandler {
|
||||||
String payload = message.getPayload();
|
String payload = message.getPayload();
|
||||||
if (!Objects.equals(
|
if (!Objects.equals(
|
||||||
objectMapper.readTree(payload).get("$id").asText(),
|
objectMapper.readTree(payload).get("$id").asText(),
|
||||||
RequestTowerPlacingMessage.MESSAGE_ID)) {
|
RequestTowerPlacingMessage.MESSAGE_ID
|
||||||
|
)) {
|
||||||
this.closeSession(session, CloseStatus.BAD_DATA);
|
this.closeSession(session, CloseStatus.BAD_DATA);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue