summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream
diff options
context:
space:
mode:
authorThom Nichols <tmnichols@gmail.com>2010-06-03 13:51:11 -0400
committerThom Nichols <tmnichols@gmail.com>2010-06-03 13:51:11 -0400
commitd20cd6b3e6a7edacfef6010339d7fb7b587a9def (patch)
treeb7d84334df0d6dda4bbcdbabb44ec028ba6f48f9 /sleekxmpp/xmlstream
parentda6e1e47dc81f5f9579201644d7c18dd85510368 (diff)
downloadslixmpp-d20cd6b3e6a7edacfef6010339d7fb7b587a9def.tar.gz
slixmpp-d20cd6b3e6a7edacfef6010339d7fb7b587a9def.tar.bz2
slixmpp-d20cd6b3e6a7edacfef6010339d7fb7b587a9def.tar.xz
slixmpp-d20cd6b3e6a7edacfef6010339d7fb7b587a9def.zip
added function execution on transition, and more unit tests.
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r--sleekxmpp/xmlstream/xmlstream.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sleekxmpp/xmlstream/xmlstream.py b/sleekxmpp/xmlstream/xmlstream.py
index 76aecee4..c407a335 100644
--- a/sleekxmpp/xmlstream/xmlstream.py
+++ b/sleekxmpp/xmlstream/xmlstream.py
@@ -281,7 +281,7 @@ class XMLStream(object):
data = None
try:
- data = self.sendqueue.get(True,10)
+ data = self.sendqueue.get(True,5)
logging.debug("SEND: %s" % data)
self.socket.sendall(data.encode('utf-8'))
except queue.Empty:
@@ -372,6 +372,7 @@ class XMLStream(object):
try:
event = self.eventqueue.get(True, timeout=5)
except queue.Empty:
+ logging.debug('Nothing on event queue')
event = None
if event is not None:
etype = event[0]