diff options
author | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-01-31 14:13:57 +0100 |
---|---|---|
committer | Kjetil Ørbekk <kjetil.orbekk@gmail.com> | 2012-01-31 14:13:57 +0100 |
commit | 2595e02a1b0304b82a5e7e2fe1f1dce0f7c69105 (patch) | |
tree | d450536569aadae4a255d9f4f130d6a97761ea06 /same/src/main/java/com | |
parent | 66bbea9deadc0cf559e2c84d248f1b86a7e59467 (diff) |
Use full url with discovery.
Diffstat (limited to 'same/src/main/java/com')
-rw-r--r-- | same/src/main/java/com/orbekk/same/ClientServiceImpl.java | 5 |
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)); } } |