From a445e03d8b89e900319a5d4f9477f9e3383f5be1 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sun, 9 Mar 2014 17:57:11 -0700 Subject: bitbake: 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 rev: f147b41bcaf9d05b5ba3a70100f1ca799979aee7) Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/knotty.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 14bdb378d5..55cf50735c 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): -- cgit v1.2.3-54-g00ecf