moved one second sleep
This commit is contained in:
parent
d4968d478e
commit
0a406bfe0d
1 changed files with 3 additions and 2 deletions
|
@ -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"""
|
||||||
|
|
Reference in a new issue