summaryrefslogtreecommitdiff
path: root/same/src/main/java/com
diff options
context:
space:
mode:
authorKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-05-08 11:07:26 +0200
committerKjetil Ørbekk <kjetil.orbekk@gmail.com>2012-05-08 11:07:26 +0200
commitd810483912758fdc93ae67415f8857548455c430 (patch)
tree27c5683831d383584dfad96083a2a52631b20d5e /same/src/main/java/com
parent7bc7fe45b23f048a6bd609b7fbd01270b498a20b (diff)
Correctly drop failed clients.
Diffstat (limited to 'same/src/main/java/com')
-rw-r--r--same/src/main/java/com/orbekk/same/Master.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/same/src/main/java/com/orbekk/same/Master.java b/same/src/main/java/com/orbekk/same/Master.java
index 90601df..678baf2 100644
--- a/same/src/main/java/com/orbekk/same/Master.java
+++ b/same/src/main/java/com/orbekk/same/Master.java
@@ -51,10 +51,8 @@ public class Master {
@Override
public void run(T unused) {
- if (rpc.isOk()) {
- if (rpc.failed()) {
- removeParticipant(participantLocation);
- }
+ if (rpc.failed()) {
+ removeParticipant(participantLocation);
}
}
}