Skip to content

Commit

Permalink
Sometimes we have no mash, so dont wait for mash_thread if we dont
Browse files Browse the repository at this point in the history
If self.state['completed_repos'] is True, we don't kick off a mash thread, and
def mash() returns nothing (None).

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
  • Loading branch information
puiterwijk committed Sep 23, 2016
1 parent b2bbe77 commit 68de510
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bodhi/server/consumers/masher.py
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,9 @@ def mash(self):
return mash_thread

def wait_for_mash(self, mash_thread):
if mash_thread is None:
self.log.info('Not waiting for mash thread, as there was no mash')
return
self.log.debug('Waiting for mash thread to finish')
mash_thread.join()
if mash_thread.success:
Expand Down

0 comments on commit 68de510

Please sign in to comment.