Skip to content

Commit 587ccc6

Browse files
committed
Breaking another dependency of Grid on RC server
1 parent 3047aa7 commit 587ccc6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

java/server/src/org/openqa/grid/web/servlet/LifecycleServlet.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import org.openqa.grid.common.exception.GridException;
2222
import org.openqa.grid.internal.Registry;
23-
import org.openqa.selenium.server.browserlaunchers.Sleeper;
2423

2524
import java.io.IOException;
2625

@@ -58,7 +57,11 @@ protected void process(HttpServletRequest request, HttpServletResponse response)
5857
if ("shutdown".equals(action)) {
5958
Runnable initiateHubShutDown = new Runnable() {
6059
public void run() {
61-
Sleeper.sleepTight(500);
60+
try {
61+
Thread.sleep(500);
62+
} catch (InterruptedException e) {
63+
throw new RuntimeException(e);
64+
}
6265
System.exit(0);
6366
}
6467
};

0 commit comments

Comments
 (0)