From 3ba4968baf1f65a203789c34b9ac9da8396c84f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20S=C3=A1nchez=20de=20Le=C3=B3n=20Peque?= Date: Mon, 9 Apr 2018 11:04:34 +0200 Subject: [PATCH] fixup! Implement safer agent shutdown/kill process --- osbrain/agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osbrain/agent.py b/osbrain/agent.py index 58f0d0e..e40ce97 100644 --- a/osbrain/agent.py +++ b/osbrain/agent.py @@ -1686,7 +1686,7 @@ def run(self): raise self._running = False if self._die_now: - self._die(linger=None) + self._die() def shutdown(self): """ @@ -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.