瀏覽代碼

Fix restarting

tags/v0.1^2
Ben Kurtovic 12 年之前
父節點
當前提交
3fc151470b
共有 2 個檔案被更改,包括 3 行新增3 行删除
  1. +1
    -0
      earwigbot/irc/connection.py
  2. +2
    -3
      earwigbot/main.py

+ 1
- 0
earwigbot/irc/connection.py 查看文件

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

+ 2
- 3
earwigbot/main.py 查看文件

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

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():
if config.components.get("irc_frontend"):


Loading…
取消
儲存