summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream/handler/callback.py
diff options
context:
space:
mode:
authorThom Nichols <tmnichols@gmail.com>2010-06-01 22:55:01 -0400
committerThom Nichols <tmnichols@gmail.com>2010-06-01 22:55:01 -0400
commit060b4c39385e548d1b28bc5ea5bdb29417e156ea (patch)
treed2c9369965b77e37bb065029ac572c35a9f5f1da /sleekxmpp/xmlstream/handler/callback.py
parent49f5767aea2815211349d93aa03ce2b9dc088c1e (diff)
parent4eb210bff5753143300e5bf6ae09617901e9a28e (diff)
downloadslixmpp-060b4c39385e548d1b28bc5ea5bdb29417e156ea.tar.gz
slixmpp-060b4c39385e548d1b28bc5ea5bdb29417e156ea.tar.bz2
slixmpp-060b4c39385e548d1b28bc5ea5bdb29417e156ea.tar.xz
slixmpp-060b4c39385e548d1b28bc5ea5bdb29417e156ea.zip
Merge branch 'hacks' of github.com:tomstrummer/SleekXMPP
Diffstat (limited to 'sleekxmpp/xmlstream/handler/callback.py')
-rw-r--r--sleekxmpp/xmlstream/handler/callback.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/handler/callback.py b/sleekxmpp/xmlstream/handler/callback.py
index 49cfa14d..ea5acb5b 100644
--- a/sleekxmpp/xmlstream/handler/callback.py
+++ b/sleekxmpp/xmlstream/handler/callback.py
@@ -17,13 +17,15 @@ class Callback(base.BaseHandler):
self._once = once
self._instream = instream
- def prerun(self, payload):
+ def prerun(self, payload): # prerun actually calls run?!? WTF! Then it gets run AGAIN!
base.BaseHandler.prerun(self, payload)
if self._instream:
+ logging.debug('callback "%s" prerun', self.name)
self.run(payload, True)
def run(self, payload, instream=False):
if not self._instream or instream:
+ logging.debug('callback "%s" run', self.name)
base.BaseHandler.run(self, payload)
#if self._thread:
# x = threading.Thread(name="Callback_%s" % self.name, target=self._pointer, args=(payload,))