Remove isOpen assertion when sending WebSocket message
Issue: SPR-14138
This commit is contained in:
committed by
Rossen Stoyanchev
parent
28f2f4a431
commit
aafd46aeb3
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2014 the original author or authors.
|
* Copyright 2002-2016 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -95,7 +95,6 @@ public abstract class AbstractWebSocketSession<T> implements NativeWebSocketSess
|
|||||||
public final void sendMessage(WebSocketMessage<?> message) throws IOException {
|
public final void sendMessage(WebSocketMessage<?> message) throws IOException {
|
||||||
|
|
||||||
checkNativeSessionInitialized();
|
checkNativeSessionInitialized();
|
||||||
Assert.isTrue(isOpen(), "Cannot send message after connection closed.");
|
|
||||||
|
|
||||||
if (logger.isTraceEnabled()) {
|
if (logger.isTraceEnabled()) {
|
||||||
logger.trace("Sending " + message + ", " + this);
|
logger.trace("Sending " + message + ", " + this);
|
||||||
|
|||||||
Reference in New Issue
Block a user