Skip to content

Commit

Permalink
fixup! Implement safer agent shutdown/kill process
Browse files Browse the repository at this point in the history
  • Loading branch information
Peque committed Apr 9, 2018
1 parent cda9b0d commit 3ba4968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osbrain/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ def run(self):
raise
self._running = False
if self._die_now:
self._die(linger=None)
self._die()

def shutdown(self):
"""
Expand All @@ -1711,7 +1711,7 @@ def kill(self):
else:
self._die(linger=0)

def _die(self, linger):
def _die(self, linger=None):
"""
Tear down the agent. Last action before ending existence.
Expand Down

0 comments on commit 3ba4968

Please sign in to comment.