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 ec4c9a2 commit 122fce7Copy full SHA for 122fce7
src/org/java_websocket/SSLSocketChannel2.java
@@ -197,7 +197,8 @@ public boolean isConnected() {
197
public void close() throws IOException {
198
sslEngine.closeOutbound();
199
sslEngine.getSession().invalidate();
200
- int wr = sc.write( wrap( emptybuffer ) );
+ if( sc.isOpen() )
201
+ sc.write( wrap( emptybuffer ) );// FIXME what if not all bytes can be written
202
sc.close();
203
}
204
0 commit comments