Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
queue: Only NAK the events if the channel is still open.
Alex Vandiver2b37a35f7152
diff --git a/zerver/lib/queue.py b/zerver/lib/queue.pyindex a00a1b18c46..ca967968520 100644--- a/zerver/lib/queue.py+++ b/zerver/lib/queue.py@@ -217,7 +217,8 @@ class SimpleQueueClient(QueueClient[BlockingChannel]):callback(events)channel.basic_ack(max_processed, multiple=True)except BaseException:- channel.basic_nack(max_processed, multiple=True)+ if channel.is_open:+ channel.basic_nack(max_processed, multiple=True)raiseevents = []last_process = now