From 3642e2c7f436f6c0935ebcfa3ee279d4ac22adaf Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 25 Jan 2021 10:13:49 +0100 Subject: [PATCH] xmlstream: ensure slow futures are scheduled on this loop --- slixmpp/xmlstream/xmlstream.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index 2cc5fe17..37cadc1f 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -1053,7 +1053,8 @@ class XMLStream(asyncio.BaseProtocol): self._continue_slow_send( task, already_run_filters - ) + ), + loop=self.loop, ) raise Exception("Slow coro, rescheduling") data = task.result()