summaryrefslogtreecommitdiff
path: root/same/src
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-01-31 14:18:46 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-01-31 14:18:46 +0100
commitc53846bfad9c75ab24ae9051470b4d102e083538 (patch)
treef01edc7ba5427736b57764bf5925e5fc49becb9d /same/src
parent2595e02a1b0304b82a5e7e2fe1f1dce0f7c69105 (diff)
Fix: Set correct /ClientService.json handler.
Diffstat (limited to 'same/src')
-rw-r--r--same/src/main/java/com/orbekk/same/SameController.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/same/src/main/java/com/orbekk/same/SameController.java b/same/src/main/java/com/orbekk/same/SameController.java
index 9b8abde..b75de96 100644
--- a/same/src/main/java/com/orbekk/same/SameController.java
+++ b/same/src/main/java/com/orbekk/same/SameController.java
@@ -32,7 +32,8 @@ public class SameController implements UrlReceiver {
broadcaster);
JsonRpcServer jsonMaster = new JsonRpcServer(master, MasterService.class);
ClientServiceImpl client = new ClientServiceImpl(state, connections);
- JsonRpcServer jsonClient = new JsonRpcServer(client, ClientService.class);
+ JsonRpcServer jsonClient = new JsonRpcServer(client.getService(),
+ ClientService.class);
PaxosServiceImpl paxos = new PaxosServiceImpl("");
JsonRpcServer jsonPaxos = new JsonRpcServer(paxos, PaxosService.class);