Skip to content

Commit 1c43128

Browse files
committed
added missing shutdown statement for the websocket clients executorservice (TooTallNate#171)
1 parent 35984c5 commit 1c43128

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/org/java_websocket/SSLSocketChannel2.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ public void close() throws IOException {
269269
if( socketChannel.isOpen() )
270270
socketChannel.write( wrap( emptybuffer ) );// FIXME what if not all bytes can be written
271271
socketChannel.close();
272+
exec.shutdownNow();
272273
}
273274

274275
private boolean isHandShakeComplete() {

0 commit comments

Comments
 (0)