Remove isOpen assertion when sending WebSocket message

Issue: SPR-14138
This commit is contained in:
Venil Noronha 2016-04-14 18:32:50 +05:30 committed by Rossen Stoyanchev
parent 28f2f4a431
commit aafd46aeb3
1 changed files with 1 additions and 2 deletions

View File

@ -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");
* 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 {
checkNativeSessionInitialized();
Assert.isTrue(isOpen(), "Cannot send message after connection closed.");
if (logger.isTraceEnabled()) {
logger.trace("Sending " + message + ", " + this);