From 588502838c3db4cb31e879b7b02e4550cfb3498d Mon Sep 17 00:00:00 2001 From: Alberth Date: Tue, 30 Dec 2014 17:59:56 +0100 Subject: [PATCH] Fix: Don't continue looking hard for new challenges when they are not findable. --- main.nut | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.nut b/main.nut index 0996553..c4db9ee 100644 --- a/main.nut +++ b/main.nut @@ -259,8 +259,8 @@ function BusyBeeClass::Start() monitor_timeout = 0; // Force updating of the monitor. } - if (total_missing > 1) { - new_goal_timeout = 1 * 74; // If more missing goals, wait only a short while. + if (best_cid != null && total_missing > 1) { + new_goal_timeout = 1 * 74; // More missing goals and we can find new ones, wait only a short while. } else { new_goal_timeout = 30 * 74; }