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

git version control gitrepo at otfbot.org
Di Nov 9 20:49:29 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  29c7407ff5beac2d84fba0f6736413e8eff8cfc0 (commit)
      from  a8ff3829ea364f3e86e3f25e582bbd6dd565239b (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 29c7407ff5beac2d84fba0f6736413e8eff8cfc0
Author: allo <allo at laxu.de>
Date:   Tue Nov 9 20:48:09 2010 +0100

    make sure the thread terminates
    get the lock, notify the thread, release the lock to get the loop to do
    another iteration and terminating because the stop-flag is set

diff --git a/otfbot/plugins/ircClient/log.py b/otfbot/plugins/ircClient/log.py
index adc8857..527257b 100644
--- a/otfbot/plugins/ircClient/log.py
+++ b/otfbot/plugins/ircClient/log.py
@@ -247,9 +247,11 @@ class Plugin(chatMod.chatMod):
     def stop(self):
+        self.bufferCondition.acquire()
-        self.bufferCondition.notify()
+        self.bufferCondition.notify()
+        self.bufferCondition.release()
     def connectionMade(self):

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


Mehr Informationen über die Mailingliste Otfbot-dev