[Otfbot-dev] [Git] OTFBot branch, master, updated. a8ff3829ea364f3e86e3f25e582bbd6dd565239b

git version control gitrepo at otfbot.org
Di Nov 9 20:42:15 CET 2010

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "OTFBot".

The branch, master has been updated
       via  a8ff3829ea364f3e86e3f25e582bbd6dd565239b (commit)
      from  88e253626ee9e4a0f6514865e5e443beb8522039 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a8ff3829ea364f3e86e3f25e582bbd6dd565239b
Author: allo <allo at laxu.de>
Date:   Tue Nov 9 20:41:37 2010 +0100

    lock for closing lockfiles (prevents write to invalid filehandle)

diff --git a/otfbot/plugins/ircClient/log.py b/otfbot/plugins/ircClient/log.py
index 2ba130b..adc8857 100644
--- a/otfbot/plugins/ircClient/log.py
+++ b/otfbot/plugins/ircClient/log.py
@@ -240,7 +240,10 @@ class Plugin(chatMod.chatMod):
     def closeLogs(self):
         for channel in self.channels:
             self.log(channel, "--- Log closed " + self.ts("%a %b %d %H:%M:%S %Y"), False)
+            self.bufferCondition.acquire()
+            self.bufferCondition.notify()
+            self.bufferCondition.release()
     def stop(self):

Summary of changes:
 otfbot/plugins/ircClient/log.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


Mehr Informationen über die Mailingliste Otfbot-dev