]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: knotty: Remove latency when exiting
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Mar 2014 00:57:11 +0000 (17:57 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Mar 2014 18:10:01 +0000 (11:10 -0700)
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 rev: f147b41bcaf9d05b5ba3a70100f1ca799979aee7)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/knotty.py

index 14bdb378d57bcc83f332ea56c8f0db641118563e..55cf50735cb9d3def7b20920760c077a58498ff0 100644 (file)
@@ -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):