Skip to content

Commit

Permalink
Breaking another dependency of Grid on RC server
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Oct 14, 2015
1 parent 3047aa7 commit 587ccc6
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import org.openqa.grid.common.exception.GridException;
import org.openqa.grid.internal.Registry;
import org.openqa.selenium.server.browserlaunchers.Sleeper;

import java.io.IOException;

Expand Down Expand Up @@ -58,7 +57,11 @@ protected void process(HttpServletRequest request, HttpServletResponse response)
if ("shutdown".equals(action)) {
Runnable initiateHubShutDown = new Runnable() {
public void run() {
Sleeper.sleepTight(500);
try {
Thread.sleep(500);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
System.exit(0);
}
};
Expand Down

0 comments on commit 587ccc6

Please sign in to comment.