Group :: Development/Python3
RPM: python3-module-slixmpp
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: 0001-This-hangs.patch
Download
Download
From 6b148fa20ac00b19d9b0fcccd68886a93ba9ff37 Mon Sep 17 00:00:00 2001
From: "George V. Kouryachy (Fr. Br. George)" <george@altlinux.ru>
Date: Tue, 8 Feb 2022 15:52:30 +0300
Subject: [PATCH] This hangs
---
slixmpp-slix/slixmpp/xmlstream/xmlstream.py | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/slixmpp-slix/slixmpp/xmlstream/xmlstream.py b/slixmpp-slix/slixmpp/xmlstream/xmlstream.py
index b5b78b3..7db777a 100644
--- a/slixmpp-slix/slixmpp/xmlstream/xmlstream.py
+++ b/slixmpp-slix/slixmpp/xmlstream/xmlstream.py
@@ -541,14 +541,14 @@ class XMLStream(asyncio.BaseProtocol):
async def _consume_send_queue_before_disconnecting(self, reason: Optional[str], wait: float):
"""Wait until the send queue is empty before disconnecting"""
- try:
- await asyncio.wait_for(
- self.waiting_queue.join(),
- wait,
- loop=self.loop
- )
- except asyncio.TimeoutError:
- wait = 0 # we already consumed the timeout
+ # try:
+ # await asyncio.wait_for(
+ # self.waiting_queue.join,
+ # wait,
+ # loop=self.loop
+ # )
+ # except asyncio.TimeoutError:
+ # wait = 0 # we already consumed the timeout
self.disconnect_reason = reason
await self._end_stream_wait(wait)
--
2.33.0