Skip to content

Commit c2c646c

Browse files
pujaganidiemol
authored andcommitted
[java] Close the underlying websocket for JDK 11 Http Client
1 parent d47de2a commit c2c646c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/src/org/openqa/selenium/remote/http/jdk/JdkHttpClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ public HttpResponse execute(HttpRequest req) throws UncheckedIOException {
306306
@Override
307307
public void close() {
308308
executorService.shutdownNow();
309-
// if (this.websocket != null) {
310-
// this.websocket.close();
311-
// }
309+
if (this.websocket != null) {
310+
this.websocket.close();
311+
}
312312
this.client = null;
313313
}
314314

0 commit comments

Comments
 (0)