summaryrefslogtreecommitdiff
path: root/same/src/main/java
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-01-31 14:13:57 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-01-31 14:13:57 +0100
commit2595e02a1b0304b82a5e7e2fe1f1dce0f7c69105 (patch)
treed450536569aadae4a255d9f4f130d6a97761ea06 /same/src/main/java
parent66bbea9deadc0cf559e2c84d248f1b86a7e59467 (diff)
Use full url with discovery.
Diffstat (limited to 'same/src/main/java')
-rw-r--r--same/src/main/java/com/orbekk/same/ClientServiceImpl.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/same/src/main/java/com/orbekk/same/ClientServiceImpl.java b/same/src/main/java/com/orbekk/same/ClientServiceImpl.java
index 658bf37..3ba8b04 100644
--- a/same/src/main/java/com/orbekk/same/ClientServiceImpl.java
+++ b/same/src/main/java/com/orbekk/same/ClientServiceImpl.java
@@ -149,14 +149,13 @@ public class ClientServiceImpl implements UrlReceiver,
@Override
public void discover(String url) {
- String clientUrl = url + "ClientService.json";
if (!url.equals(myUrl)) {
try {
- connections.getClient(clientUrl)
+ connections.getClient(url)
.notifyNetwork(state.getDataOf(".networkName"),
state.getDataOf(".masterUrl"));
} catch (Exception e) {
- logger.warn("Failed to contact new client {}: {}", clientUrl,
+ logger.warn("Failed to contact new client {}: {}", url,
throwableToString(e));
}
}