From 47fbd4cead2e881b0250dd5f978caf64c6a5952c Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Sat, 3 Jan 2015 05:55:17 +0100 Subject: 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) --- slixmpp/xmlstream/resolver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slixmpp/xmlstream/resolver.py') 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 -- cgit v1.2.3