Status is known when failing
@@ -65,6 +65,7 @@ public class NodeMonitor {
*/
public void failed(ErrorMessage error) {
long respondedAt = System.currentTimeMillis();
+ statusIsKnown = true;
if (error.getCode() == NO_ANSWER_WHEN_PINGING_NODE.code) {
// Only count not being able to talk to backend at all
@@ -86,10 +87,11 @@ public class NodeMonitor {
*/
public void responded(boolean searchNodesOnline) {
succeededAt = System.currentTimeMillis();
+ statusIsKnown = true;
+
this.searchNodesOnline = searchNodesOnline;
if (! isWorking)
setWorking(true, "Responds correctly");
- statusIsKnown = true;
}
/** Changes the state of this node if required */
