bot: forgot to exit after received SIGTERM…
This commit is contained in:
parent
6841b01e8d
commit
3a85e5a23c
|
@ -179,6 +179,7 @@ class Bot(irc.client.SimpleIRCClient, Logger):
|
|||
def handle_sigterm(self, *args):
|
||||
"""Handle SIGTERM (keyboard interrupt, systemd stop, etc)."""
|
||||
self.cleanup()
|
||||
exit("Exiting after received SIGTERM.")
|
||||
|
||||
def cleanup(self):
|
||||
"""Save the storage file and close the connection. Run only once."""
|
||||
|
|
Loading…
Reference in a new issue