Skip to content

Commit

Permalink
changes: remove HgPoller._stopOnFailure unused arg
Browse files Browse the repository at this point in the history
No longer used sinced _stopOnFailure is no longer called by deferred.addErrback since buildbot#6046

Fixes buildbot#7488
  • Loading branch information
tdesveaux committed May 2, 2024
1 parent cabb122 commit ef08514
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions master/buildbot/changes/hgpoller.py
Expand Up @@ -431,9 +431,8 @@ def _processBranchChanges(self, new_rev, branch):
# but at once to avoid impact from later errors
yield self._setCurrentRev(new_rev, branch)

def _stopOnFailure(self, f):
def _stopOnFailure(self):
"utility method to stop the service when a failure occurs"
if self.running:
d = defer.maybeDeferred(self.stopService)
d.addErrback(log.err, 'while stopping broken HgPoller service')
return f

0 comments on commit ef08514

Please sign in to comment.