Skip to content

Commit

Permalink
#486 Fix sudo hangs on second run
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson Yeung committed Dec 23, 2022
1 parent 8f6c061 commit 2e9e431
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions invoke/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ def _finish(self):
# upset and aborted execution; make a generic Failure out of it and
# raise that.
if watcher_errors:
self.kill()
# TODO: ambiguity exists if we somehow get WatcherError in *both*
# threads...as unlikely as that would normally be.
raise Failure(result, reason=watcher_errors[0])
Expand Down

0 comments on commit 2e9e431

Please sign in to comment.