File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
spring-websocket/src/main/java/org/springframework/web/socket/messaging Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2019 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -240,6 +240,10 @@ else if (webSocketMessage instanceof BinaryMessage) {
240
240
241
241
BufferingStompDecoder decoder = this .decoders .get (session .getId ());
242
242
if (decoder == null ) {
243
+ if (!session .isOpen ()) {
244
+ logger .trace ("Dropped inbound WebSocket message due to closed session" );
245
+ return ;
246
+ }
243
247
throw new IllegalStateException ("No decoder for session id '" + session .getId () + "'" );
244
248
}
245
249
You can’t perform that action at this time.
0 commit comments