From bcc39fea455898e9d51a82c0eb460aca51516431 Mon Sep 17 00:00:00 2001 From: totaam Date: Fri, 5 May 2023 00:39:34 +0700 Subject: [PATCH] fix force_flush_queue: Queue objects have get but not read --- xpra/net/protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpra/net/protocol.py b/xpra/net/protocol.py index db18efb6fb..83d07386cf 100644 --- a/xpra/net/protocol.py +++ b/xpra/net/protocol.py @@ -66,7 +66,7 @@ def force_flush_queue(q): #discard all elements in the old queue and push the None marker: try: while q.qsize()>0: - q.read(False) + q.get(False) except Exception: log("force_flush_queue(%s)", q, exc_info=True) q.put_nowait(None)