From a4e974def908d867d3a65733e3b3485a48417a2f Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Wed, 10 May 2023 11:19:41 -0700 Subject: [PATCH] client: fix batch pop() of exception --- src/clientmon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clientmon.cpp b/src/clientmon.cpp index 2759cc3..6d6d4ec 100644 --- a/src/clientmon.cpp +++ b/src/clientmon.cpp @@ -160,11 +160,11 @@ struct SubscriptionImpl final : public OperationBase, public Subscription { { if(!queue.empty()) { - auto ent(std::move(queue.front())); - if(!canthrow && ent.exc) + if(!canthrow && queue.front().exc) return; + auto ent(std::move(queue.front())); queue.pop_front(); if(pipeline) {