Skip to content

Commit

Permalink
(fixes buildbot#713) make triggering a stopped Loop a warnable offence
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Mar 28, 2010
1 parent 670d3eb commit ebfe1b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion buildbot/util/loop.py
Expand Up @@ -116,7 +116,11 @@ def when_quiet(self):
return d

def trigger(self):
assert self.running
# if we're triggered while not running, ignore it. We'll automatically
# trigger when the service starts
if not self.running:
print "loop triggered while service disabled; ignoring trigger"
return
self._mark_runnable(run_everything=True)

def _mark_runnable(self, run_everything):
Expand Down

0 comments on commit ebfe1b6

Please sign in to comment.