Browse code

BM-11681 Fix: wait for registration before setting initial state

Thomas Fricker authored on 22/06/2017 10:39:02
Showing 1 changed files
... ...
@@ -60,9 +60,7 @@ public class StateObserverVerticle extends Verticle {
60 60
 				SystemState newState = SystemState.fromOperation(msg.getString("operation"));
61 61
 				updateState(newState);
62 62
 			}
63
-		});
64
-		refreshState();
65
-
63
+		}, (v) -> refreshState());
66 64
 	}
67 65
 
68 66
 	private void refreshState() {