File tree 2 files changed +13
-0
lines changed
client/src/org/openqa/selenium/remote/tracing
server/src/org/openqa/selenium/grid/node/config
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 29
29
import org .openqa .selenium .remote .http .HttpResponse ;
30
30
import org .openqa .selenium .remote .http .WebSocket ;
31
31
32
+ import java .io .IOException ;
32
33
import java .net .URL ;
33
34
34
35
public class TracedHttpClient implements HttpClient {
@@ -58,6 +59,11 @@ public HttpResponse execute(HttpRequest req) {
58
59
}
59
60
}
60
61
62
+ @ Override
63
+ public void close () throws IOException {
64
+ delegate .close ();
65
+ }
66
+
61
67
public static class Factory implements HttpClient .Factory {
62
68
63
69
private final Tracer tracer ;
Original file line number Diff line number Diff line change 42
42
import org .openqa .selenium .remote .tracing .Status ;
43
43
import org .openqa .selenium .remote .tracing .Tracer ;
44
44
45
+ import java .io .IOException ;
46
+ import java .io .UncheckedIOException ;
45
47
import java .net .URI ;
46
48
import java .net .URL ;
47
49
import java .time .Instant ;
@@ -152,6 +154,11 @@ public Optional<ActiveSession> apply(CreateSessionRequest sessionRequest) {
152
154
@ Override
153
155
public void stop () {
154
156
service .stop ();
157
+ try {
158
+ client .close ();
159
+ } catch (IOException e ) {
160
+ throw new UncheckedIOException (e );
161
+ }
155
162
}
156
163
});
157
164
} catch (Exception e ) {
You can’t perform that action at this time.
0 commit comments