Browse Source

Improve logic of "working?"

Stefan Fischer 6 years ago
parent
commit
c7d311b630
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/models/agents/mqtt_agent.rb

+ 1 - 1
app/models/agents/mqtt_agent.rb

@@ -77,7 +77,7 @@ module Agents
     end
     end
 
 
     def working?
     def working?
-      event_created_within?(interpolated['expected_update_period_in_days']) && !recent_error_logs?
+      (event_created_within?(interpolated['expected_update_period_in_days']) && !recent_error_logs?) || received_event_without_error?
     end
     end
 
 
     def default_options
     def default_options