Don't set the wake event if reconfiguring.
This could cause us to wake continuously. Change-Id: I973b821d69f9240a6ec5dd68ca180372f7c2fa6b
This commit is contained in:
parent
2eea2b69dd
commit
4baa94cb06
|
@ -198,9 +198,13 @@ class Scheduler(threading.Thread):
|
|||
if self._reconfigure_flag and self._areAllBuildsComplete():
|
||||
self._doReconfigure()
|
||||
|
||||
if not (self.trigger_event_queue.empty() and
|
||||
self.result_event_queue.empty()):
|
||||
self.wake_event.set()
|
||||
if not self._reconfigure_flag:
|
||||
if not (self.trigger_event_queue.empty() and
|
||||
self.result_event_queue.empty()):
|
||||
self.wake_event.set()
|
||||
else:
|
||||
if not self.result_event_queue.empty():
|
||||
self.wake_event.set()
|
||||
except:
|
||||
self.log.exception("Exception in run handler:")
|
||||
|
||||
|
|
Loading…
Reference in New Issue