Skip to content

Commit

Permalink
Catch IllegalStateException to prevent runtime crash
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-sexenian committed Mar 20, 2024
1 parent a105894 commit 34cd479
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private SendResponseType sendMessage(GXWebSocketSession session, String message)
try {
session.getSession().sendEndPointText(message);
result = SendResponseType.OK;
} catch (IOException e) {
} catch (IOException | IllegalStateException e) {
result = SendResponseType.SendFailed;
logger.warn("WebSocket - sendMessage failed", e);
}
Expand Down

0 comments on commit 34cd479

Please sign in to comment.