We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2eab3df commit e67a274Copy full SHA for e67a274
spring-websocket/src/main/java/org/springframework/web/socket/adapter/AbstractWebSocketSession.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright 2002-2014 the original author or authors.
+ * Copyright 2002-2016 the original author or authors.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
@@ -95,7 +95,6 @@ protected final void checkNativeSessionInitialized() {
95
public final void sendMessage(WebSocketMessage<?> message) throws IOException {
96
97
checkNativeSessionInitialized();
98
- Assert.isTrue(isOpen(), "Cannot send message after connection closed.");
99
100
if (logger.isTraceEnabled()) {
101
logger.trace("Sending " + message + ", " + this);
0 commit comments