diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-28 17:07:21 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-30 09:51:27 +0100 |
commit | db4d80b5c2d32117cdf06333b9627202998b1512 (patch) | |
tree | 25e2b60ade356a95bbe718d754803b9500f9ad46 /bin/bitbake | |
parent | 59f2f33440449c586c23dd3a192698a37aaf0595 (diff) | |
download | bitbake-db4d80b5c2d32117cdf06333b9627202998b1512.tar.gz |
bin/bitbake: Only try and process an event_queue if it exists
The connection may have failed before the event queue has been setup.
Handle this correctly in the exception handler.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bin/bitbake')
-rwxr-xr-x | bin/bitbake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/bitbake b/bin/bitbake index cd01992ba..45f56b3d5 100755 --- a/bin/bitbake +++ b/bin/bitbake @@ -222,7 +222,7 @@ def start_server(servermodule, configParams, configuration, features): server.saveConnectionDetails() except Exception as e: exc_info = sys.exc_info() - while True: + while hasattr(server, "event_queue"): try: import queue except ImportError: |