Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/xmpppy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralkorgun <alkorgun@gmail.com>2014-01-15 21:59:57 +0400
committeralkorgun <alkorgun@gmail.com>2014-01-15 21:59:57 +0400
commit5cf281f5ef5a068de508357ef13d0fcf83ce71a8 (patch)
tree5198a9e1f8effa93c0ca2d6ba7e8e1448a87f0b2
parent7eaeea214a6f8057d0a44428e58a5fa38ed1d2de (diff)
fix for _send_queue
-rw-r--r--xmpp/dispatcher.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmpp/dispatcher.py b/xmpp/dispatcher.py
index 9a615df..58cb5ed 100644
--- a/xmpp/dispatcher.py
+++ b/xmpp/dispatcher.py
@@ -153,7 +153,7 @@ class Dispatcher(PlugIn):
e = self._pendingExceptions.pop()
raise e[0], e[1], e[2]
conn = self._owner.Connection
- recv, send = select([conn._sock], [conn._sock], [], timeout)[:2]
+ recv, send = select([conn._sock], [conn._sock] if conn._send_queue else [], [], timeout)[:2]
if send:
while conn._send_queue:
conn.send_now(conn._send_queue.pop(0))