Permalink
Browse files

Do leader election after setting up connections

  • Loading branch information...
1 parent cf76206 commit bae0dc434e2643cb1a68640ddfa00965bbcf4a5c @dgomezferro committed Nov 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/yahoo/pasc/paxos/server/tcp/TcpServer.java
@@ -143,6 +143,7 @@ public void process(WatchedEvent event) {
public void run() {
startServer();
+ setupConnections();
leaderElection.start();
try {
barrier.enter();
@@ -153,7 +154,6 @@ public void run() {
} catch (InterruptedException e) {
LOG.error("Couldn't initialize leaderElection", e);
}
- setupConnections();
}
@Override

0 comments on commit bae0dc4

Please sign in to comment.