Compare commits
1 commit
e0f23f31d8
...
5ec9b899f0
Author | SHA1 | Date | |
---|---|---|---|
5ec9b899f0 |
1 changed files with 2 additions and 3 deletions
|
@ -84,8 +84,7 @@ 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