diff options
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
| -rw-r--r-- | bitbake/lib/bb/cooker.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index c4d720a6b6..fb71a968f2 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
| @@ -2249,7 +2249,7 @@ class CookerParser(object): | |||
| 2249 | result = self.result_queue.get(timeout=0.25) | 2249 | result = self.result_queue.get(timeout=0.25) |
| 2250 | except queue.Empty: | 2250 | except queue.Empty: |
| 2251 | empty = True | 2251 | empty = True |
| 2252 | pass | 2252 | yield None, None, None |
| 2253 | else: | 2253 | else: |
| 2254 | empty = False | 2254 | empty = False |
| 2255 | yield result | 2255 | yield result |
| @@ -2266,6 +2266,10 @@ class CookerParser(object): | |||
| 2266 | if isinstance(result, BaseException): | 2266 | if isinstance(result, BaseException): |
| 2267 | # Turn exceptions back into exceptions | 2267 | # Turn exceptions back into exceptions |
| 2268 | raise result | 2268 | raise result |
| 2269 | if parsed is None: | ||
| 2270 | # Timeout, loop back through the main loop | ||
| 2271 | return True | ||
| 2272 | |||
| 2269 | except StopIteration: | 2273 | except StopIteration: |
| 2270 | self.shutdown() | 2274 | self.shutdown() |
| 2271 | return False | 2275 | return False |
