소스 검색

Fix small bug in shutdown code

tags/v0.1^2
Ben Kurtovic 12 년 전
부모
커밋
08fb35eefe
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +1
    -1
      earwigbot/bot.py
  2. +1
    -1
      earwigbot/util.py

+ 1
- 1
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

+ 1
- 1
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__":


불러오는 중...
취소
저장