Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37748981
en ru br
ALT Linux repositórios
S:1.7.1-alt2

Group :: Development/Python3
RPM: python3-module-slixmpp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0001-This-hangs.patch
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
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009