moved one second sleep

This commit is contained in:
Luke Rogers 2013-10-04 11:02:37 +13:00
parent d4968d478e
commit 0a406bfe0d

View file

@ -124,8 +124,6 @@ class Bot(object):
"""quits all networks and shuts the bot down""" """quits all networks and shuts the bot down"""
self.logger.info("Stopping bot.") self.logger.info("Stopping bot.")
# wait for the bot loop to stop
time.sleep(1)
self.config.observer.stop() self.config.observer.stop()
self.logger.debug("Stopping config reloader.") self.logger.debug("Stopping config reloader.")
@ -147,6 +145,9 @@ class Bot(object):
self.running = False self.running = False
# wait for the bot loop to stop
time.sleep(1)
def restart(self, reason=None): def restart(self, reason=None):
"""shuts the bot down and restarts it""" """shuts the bot down and restarts it"""