Skip to content

Commit

Permalink
Partially revert 2edd481 since it can cause the entire hub to deadloc…
Browse files Browse the repository at this point in the history
…k if BaseRemoteProxy#getStatus blocks.
  • Loading branch information
nirvdrum committed Sep 4, 2013
1 parent 929c933 commit d6a1e7e
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,7 @@ public URL getRemoteHost() {

public TestSession getNewSession(Map<String, Object> requestedCapability) {
log.info("Trying to create a new session on node " + this);
try {
getStatus();
} catch (GridException ex) {
log.info("Node " + this + " is down or doesn't recognize the /wd/hub/status request");
return null;
}

if (!hasCapability(requestedCapability)) {
log.info("Node " + this + " has no matching capability");
return null;
Expand Down

0 comments on commit d6a1e7e

Please sign in to comment.