summaryrefslogtreecommitdiff
path: root/slixmpp/xmlstream/resolver.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-01-03 05:55:17 +0100
committerFlorent Le Coz <louiz@louiz.org>2015-01-03 06:08:03 +0100
commit47fbd4cead2e881b0250dd5f978caf64c6a5952c (patch)
treece556dce5c575c3a1d7067ba6196ba0b68d72265 /slixmpp/xmlstream/resolver.py
parent1b9b4199e8ecfdc379a34b74dd9b3b197365d74a (diff)
downloadslixmpp-47fbd4cead2e881b0250dd5f978caf64c6a5952c.tar.gz
slixmpp-47fbd4cead2e881b0250dd5f978caf64c6a5952c.tar.bz2
slixmpp-47fbd4cead2e881b0250dd5f978caf64c6a5952c.tar.xz
slixmpp-47fbd4cead2e881b0250dd5f978caf64c6a5952c.zip
Delay the handling of stanza for when the process is not busy
We use some dirty monkey-patching to add a idle_call() function to the asyncio module. We then use that method to handle each received stanza only when the event loop is not busy with some other IO (mainly, the standard input)
Diffstat (limited to 'slixmpp/xmlstream/resolver.py')
-rw-r--r--slixmpp/xmlstream/resolver.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/xmlstream/resolver.py b/slixmpp/xmlstream/resolver.py
index a3697d14..f2c3f989 100644
--- a/slixmpp/xmlstream/resolver.py
+++ b/slixmpp/xmlstream/resolver.py
@@ -8,7 +8,7 @@
:license: MIT, see LICENSE for more details
"""
-import asyncio
+from slixmpp.xmlstream.asyncio import asyncio
import socket
import logging
import random