Browse Source

Fix restarting

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
3fc151470b
2 changed files with 3 additions and 3 deletions
  1. +1
    -0
      earwigbot/irc/connection.py
  2. +2
    -3
      earwigbot/main.py

+ 1
- 0
earwigbot/irc/connection.py View File

@@ -137,4 +137,5 @@ class IRCConnection(object):
for line in lines: for line in lines:
self._process_message(line) self._process_message(line)
if not self.is_running: if not self.is_running:
self._close()
break break

+ 2
- 3
earwigbot/main.py View File

@@ -102,9 +102,8 @@ def irc_frontend():


frontend.loop() frontend.loop()


if "irc_watcher" in config.components:
w_conn.close()
f_conn.close()
if config.components.get("irc_watcher"):
watcher.is_running = False


def main(): def main():
if config.components.get("irc_frontend"): if config.components.get("irc_frontend"):


Loading…
Cancel
Save