Skip to content

Commit

Permalink
Check that we have a remote before starting the next step, or that we
Browse files Browse the repository at this point in the history
have a slave reference before releasing locks.

Fixes: #822
  • Loading branch information
Chris AtLee committed Aug 25, 2010
1 parent 628d95f commit ccbd4c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions master/buildbot/process/base.py
Expand Up @@ -339,6 +339,8 @@ def getNextStep(self):
return None
if not self.steps:
return None
if not self.remote:
return None
if self.terminate:
while True:
s = self.steps.pop(0)
Expand Down
3 changes: 2 additions & 1 deletion master/buildbot/process/builder.py
Expand Up @@ -928,7 +928,8 @@ def buildFinished(self, build, sb, bids):
brids = [br.id for br in build.requests]
self.db.retire_buildrequests(brids, results)

sb.slave.releaseLocks()
if sb.slave:
sb.slave.releaseLocks()

self.triggerNewBuildCheck()

Expand Down

0 comments on commit ccbd4c8

Please sign in to comment.