From 08fb35eefe3a2316b3620df6cd6d69c3cf38a5f0 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 8 Apr 2012 00:53:05 -0400 Subject: [PATCH] Fix small bug in shutdown code --- earwigbot/bot.py | 2 +- earwigbot/util.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/earwigbot/bot.py b/earwigbot/bot.py index 1f23d5b..6f98690 100644 --- a/earwigbot/bot.py +++ b/earwigbot/bot.py @@ -150,7 +150,7 @@ class Bot(object): If given, 'msg' will be used as our quit message. """ - self.logger.info("Shutting down bot") + self.logger.info("Stopping bot") with self.component_lock: self._stop_irc_components(msg) self._keep_looping = False diff --git a/earwigbot/util.py b/earwigbot/util.py index 51ad463..d5f48cf 100755 --- a/earwigbot/util.py +++ b/earwigbot/util.py @@ -70,7 +70,7 @@ def main(): except KeyboardInterrupt: pass finally: - if not bot._keep_looping: # Indicates bot has already been stopped + if bot._keep_looping: # Indicates bot hasn't already been stopped bot.stop() if __name__ == "__main__":