Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2010-05-10 13:27:17 -0400
committereutarass2010-05-10 13:27:17 -0400
commitd0bc9c40111b479192b5aa6470634333546196c1 (patch)
treee9c88f9611ca09fee2a31bc536b95a9fbb0e99e9 /plugins/org.eclipse.tm.tcf.core
parent0da141d414492543bf014e63528bc325300b57e8 (diff)
downloadorg.eclipse.tcf-d0bc9c40111b479192b5aa6470634333546196c1.tar.gz
org.eclipse.tcf-d0bc9c40111b479192b5aa6470634333546196c1.tar.xz
org.eclipse.tcf-d0bc9c40111b479192b5aa6470634333546196c1.zip
Bug 312251: Discovery service can't bind socket on Win 7
Diffstat (limited to 'plugins/org.eclipse.tm.tcf.core')
-rw-r--r--plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/local/LocatorService.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/local/LocatorService.java b/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/local/LocatorService.java
index c61add16e..938e108df 100644
--- a/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/local/LocatorService.java
+++ b/plugins/org.eclipse.tm.tcf.core/src/org/eclipse/tm/internal/tcf/services/local/LocatorService.java
@@ -11,7 +11,6 @@
package org.eclipse.tm.internal.tcf.services.local;
import java.lang.reflect.Method;
-import java.net.BindException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
@@ -286,7 +285,7 @@ public class LocatorService implements ILocator {
try {
socket = new DatagramSocket(DISCOVEY_PORT);
}
- catch (BindException x) {
+ catch (SocketException x) {
socket = new DatagramSocket();
}
socket.setBroadcast(true);

Back to the top