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 5c88070 commit 3da0885Copy full SHA for 3da0885
src/net/tootallnate/websocket/WebSocketClient.java
@@ -133,7 +133,8 @@ public void close() throws IOException
133
* @throws IOException When socket related I/O errors occur.
134
*/
135
public void send(String text) throws IOException {
136
- if (conn != null) {
+ if (conn != null && client.isConnected())
137
+ {
138
conn.send(text);
139
}
140
0 commit comments