diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-08 13:30:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-08 13:36:31 +0100 |
commit | 15af83452c3b126f13b95d5d01a36ce2ecf0fbb2 (patch) | |
tree | c871abaa8f184c7a87bef61ca29ad3aeb08d2892 | |
parent | 91611c8b88932c21d8cbb64c9d86472a6dab79b3 (diff) | |
download | bitbake-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.py | 12 |
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): |