From f8884a53ec5cc6181efad391bfeba1859807e155 Mon Sep 17 00:00:00 2001 From: nemunaire Date: Thu, 23 Oct 2014 15:31:38 +0200 Subject: [PATCH] On exit, stop main loop --- nemubot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nemubot.py b/nemubot.py index c4a6682..f3a29cf 100755 --- a/nemubot.py +++ b/nemubot.py @@ -85,6 +85,7 @@ if __name__ == "__main__": logger.exception("\033[1;31mUnable to reload the prompt due to errors.\033[0" "m Fix them before trying to reload the prompt.") - print ("\nWaiting for other threads shuts down...") + context.quit() + print("\nWaiting for other threads shuts down...") sys.exit(0)