Skip to content

Commit

Permalink
Ensure concurrent WebSocketSession wrapper is used
Browse files Browse the repository at this point in the history
Issue: SPR-13326
  • Loading branch information
rstoyanchev committed Aug 13, 2015
1 parent 7575271 commit 33f9ead
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,12 @@ else if (this.protocolHandlers.size() == 1) {
*/
@Override
public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) throws Exception {
WebSocketSessionHolder holder = this.sessions.get(session.getId());
if (holder != null) {
session = holder.getSession();
}
SubProtocolHandler protocolHandler = findProtocolHandler(session);
protocolHandler.handleMessageFromClient(session, message, this.clientInboundChannel);
WebSocketSessionHolder holder = this.sessions.get(session.getId());
if (holder != null) {
holder.setHasHandledMessages();
}
Expand Down

0 comments on commit 33f9ead

Please sign in to comment.