summaryrefslogtreecommitdiff
path: root/same/src/main
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-03-20 14:34:26 +0100
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-03-20 14:34:26 +0100
commit4ad09d6604aa6c2091824a239f9c75a06aef0b24 (patch)
tree8d2a8fcd1d63efda1314f801e901593b014b3db2 /same/src/main
parent409dfe838e8ae30e2512256852c1fef31f3255b4 (diff)
Start master election when update fails.
Diffstat (limited to 'same/src/main')
-rw-r--r--same/src/main/java/com/orbekk/same/Client.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/same/src/main/java/com/orbekk/same/Client.java b/same/src/main/java/com/orbekk/same/Client.java
index ceacd12..1a9fb7f 100644
--- a/same/src/main/java/com/orbekk/same/Client.java
+++ b/same/src/main/java/com/orbekk/same/Client.java
@@ -72,6 +72,7 @@ public class Client implements DiscoveryListener {
String e_ = throwableToString(e);
op.complete(DelayedOperation.Status.createError(
"Error contacting master. Update fails: " + e_));
+ startMasterElection();
}
return op;
}