Patchwork [bitbake-devel] knotty: Move second event check into a proper block

login
register
mail settings
Submitter Namhyung Kim
Date July 30, 2014, 2:01 a.m.
Message ID <1406685705-8517-1-git-send-email-namhyung@gmail.com>
Download mbox | patch
Permalink /patch/76889/
State New
Headers show

Comments

Namhyung Kim - July 30, 2014, 2:01 a.m.
so that it doesn't check it twice for non-empty events

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
 lib/bb/ui/knotty.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/lib/bb/ui/knotty.py b/lib/bb/ui/knotty.py
index 77a7082..746dcf4 100644
--- a/lib/bb/ui/knotty.py
+++ b/lib/bb/ui/knotty.py
@@ -321,8 +321,8 @@  def main(server, eventHandler, params, tf = TerminalFilter):
                     break
                 termfilter.updateFooter()
                 event = eventHandler.waitEvent(0.25)
-            if event is None:
-                continue
+                if event is None:
+                    continue
             helper.eventHandler(event)
             if isinstance(event, bb.runqueue.runQueueExitWait):
                 if not main.shutdown: