diff options
author | Thom Nichols <tmnichols@gmail.com> | 2010-06-03 13:51:11 -0400 |
---|---|---|
committer | Thom Nichols <tmnichols@gmail.com> | 2010-06-03 13:51:11 -0400 |
commit | d20cd6b3e6a7edacfef6010339d7fb7b587a9def (patch) | |
tree | b7d84334df0d6dda4bbcdbabb44ec028ba6f48f9 /sleekxmpp | |
parent | da6e1e47dc81f5f9579201644d7c18dd85510368 (diff) | |
download | slixmpp-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')
-rw-r--r-- | sleekxmpp/xmlstream/xmlstream.py | 3 |
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] |