File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
browsermob-core-littleproxy/src/main/java/net/lightbody/bmp Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -892,11 +892,11 @@ public void setWriteLimitKbps(long writeLimitKbps) {
892892
893893 @ Override
894894 public void setConnectTimeout (int connectTimeout , TimeUnit timeUnit ) {
895+ this .connectTimeoutMs = (int ) TimeUnit .MILLISECONDS .convert (connectTimeout , timeUnit );
896+
895897 if (isStarted ()) {
896- throw new IllegalStateException ( "LittleProxy implementation does not allow changes to connect timeout after proxy has been started" );
898+ proxyServer . setConnectTimeout (( int ) TimeUnit . MILLISECONDS . convert ( connectTimeout , timeUnit ) );
897899 }
898-
899- this .connectTimeoutMs = (int ) TimeUnit .MILLISECONDS .convert (connectTimeout , timeUnit );
900900 }
901901
902902 /**
You can’t perform that action at this time.
0 commit comments