summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-08 13:30:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-08 13:36:31 +0100
commit15af83452c3b126f13b95d5d01a36ce2ecf0fbb2 (patch)
treec871abaa8f184c7a87bef61ca29ad3aeb08d2892
parent91611c8b88932c21d8cbb64c9d86472a6dab79b3 (diff)
downloadbitbake-15af83452c3b126f13b95d5d01a36ce2ecf0fbb2.tar.gz
hob/crumbs/hobeventhandler: Remove server specific implementation details missed in the precious cleanup
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/ui/crumbs/hobeventhandler.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py
index a84a925f8..00e506c2c 100644
--- a/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/lib/bb/ui/crumbs/hobeventhandler.py
@@ -19,7 +19,6 @@
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
import gobject
-import Queue
from bb.ui.crumbs.progress import ProgressBar
progress_total = 0
@@ -117,13 +116,10 @@ class HobHandler(gobject.GObject):
def event_handle_idle_func (self, eventHandler, running_build, pbar):
# Consume as many messages as we can in the time available to us
- while True:
- try:
- event = eventHandler.get(block=False)
- except Queue.Empty:
- break
- else:
- self.handle_event(event, running_build, pbar)
+ event = eventHandler.getEvent()
+ while event:
+ self.handle_event(event, running_build, pbar)
+ event = eventHandler.getEvent()
return True
def set_machine(self, machine):