Skip to content

Commit

Permalink
Java on Win7x64 throws SocketException on unsuccessfull bind. Fixes i…
Browse files Browse the repository at this point in the history
…ssue

2319
  • Loading branch information
barancev committed Apr 16, 2013
1 parent e6df7ca commit c92803e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions java/client/src/org/openqa/selenium/internal/SocketLock.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.net.BindException;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketException;

/**
* Implements {@link org.openqa.selenium.internal.Lock} via an implementation that uses a well-known
Expand Down Expand Up @@ -120,6 +121,8 @@ private boolean isLockFree(InetSocketAddress address) throws IOException {
return true;
} catch (BindException e) {
return false;
} catch (SocketException e) {
return false;
}
}
}

0 comments on commit c92803e

Please sign in to comment.