Patchwork [bitbake-devel] knotty: Remove latency when exiting

login
register
mail settings
Submitter Richard Purdie
Date March 10, 2014, 12:57 a.m.
Message ID <1394413031.7883.18.camel@ted>
Download mbox | patch
Permalink /patch/68345/
State New
Headers show

Comments

Richard Purdie - March 10, 2014, 12:57 a.m.
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 14bdb37..55cf507 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -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):