Switch to side-by-side view
--- a/ForgeChat/forgechat/command.py +++ b/ForgeChat/forgechat/command.py @@ -43,8 +43,6 @@ except Exception: base.log.exception('Error in ircbot asyncore.loop(), restart in 5s') time.sleep(5) - - class IRCBot(asynchat.async_chat): TIME_BETWEEN_CONFIGS=timedelta(minutes=1) @@ -164,3 +162,4 @@ channel=rcpt, text=text) ThreadLocalORMSession.flush_all() + ThreadLocalORMSession.close_all()