aboutsummaryrefslogtreecommitdiff
path: root/src/IvyWatcher.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/IvyWatcher.java')
-rwxr-xr-xsrc/IvyWatcher.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/IvyWatcher.java b/src/IvyWatcher.java
index 52edb4b..bf8dc3f 100755
--- a/src/IvyWatcher.java
+++ b/src/IvyWatcher.java
@@ -187,8 +187,7 @@ class IvyWatcher implements Runnable {
if (!alreadyBroadcasted(remotehost.toString(),remotePort)) {
traceDebug("no known agent originating from " + remotehost + ":" + remotePort);
try {
- Socket s = new Socket(remotehost,remotePort);
- new IvyClient(bus,s,remotePort,false);
+ bus.createIvyClient(new Socket(remotehost,remotePort),remotePort,false);
} catch ( java.net.ConnectException jnc ) {
traceDebug("cannot connect to "+remotehostname+":"+remotePort+", he probably stopped his bus");
}