Skip to contentSkip to conversation

knotty: Remove latency when exiting

PATCH New Richard Purdie 1 participant 1 message Mar 10, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 knotty: Remove latency when exiting

There is no point in waiting 0.25s for when we should be processing the shutdown. This simply reordering removes latency from the bitbake command.

---

bitbake/lib/bb/ui/knotty.py +2 -2
index 14bdb37..55cf507 100644
@@ -310,11 +310,11 @@ def main(server, eventHandler, params, tf = TerminalFilter):
         try:
             event = eventHandler.waitEvent(0)
             if event is None:
+                if main.shutdown > 1:
+                    break
                 termfilter.updateFooter()
                 event = eventHandler.waitEvent(0.25)
             if event is None:
-                if main.shutdown > 1:
-                    break
                 continue
             helper.eventHandler(event)
             if isinstance(event, bb.runqueue.runQueueExitWait):