Skip to content

Commit

Permalink
Ignore missing STOMP decoder if session closed
Browse files Browse the repository at this point in the history
Closes gh-24842
  • Loading branch information
rstoyanchev committed Apr 27, 2020
1 parent 57f1e86 commit f425a99
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2019 the original author or authors.
* Copyright 2002-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -240,6 +240,10 @@ else if (webSocketMessage instanceof BinaryMessage) {

BufferingStompDecoder decoder = this.decoders.get(session.getId());
if (decoder == null) {
if (!session.isOpen()) {
logger.trace("Dropped inbound WebSocket message due to closed session");
return;
}
throw new IllegalStateException("No decoder for session id '" + session.getId() + "'");
}

Expand Down

0 comments on commit f425a99

Please sign in to comment.