diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index 19c4ddcc..40acbe96 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -525,7 +525,7 @@ def process(self, *, forever: bool = True, timeout: Optional[int] = None) -> Non tasks: List[Awaitable] = [asyncio.sleep(timeout)] if not forever: tasks.append(self.disconnected) - self.loop.run_until_complete(asyncio.wait(tasks)) + self.loop.run_until_complete(asyncio.gather(*tasks)) def init_parser(self) -> None: """init the XML parser. The parser must always be reset for each new