From 723e30fb1d3d8a8c65ffc1e5d2182c869d93bb06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20H=C3=A4ggblad?= Date: Thu, 14 Dec 2023 10:13:59 +0100 Subject: [PATCH] Replace panic with error for inserting duplicate pending ack (#4248) --- .../acknowledgement_control/action_controller.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/client-core/src/client/real_messages_control/acknowledgement_control/action_controller.rs b/common/client-core/src/client/real_messages_control/acknowledgement_control/action_controller.rs index b8615e8ec2..cb50d4ba09 100644 --- a/common/client-core/src/client/real_messages_control/acknowledgement_control/action_controller.rs +++ b/common/client-core/src/client/real_messages_control/acknowledgement_control/action_controller.rs @@ -127,7 +127,9 @@ impl ActionController { .insert(frag_id, (Arc::new(pending_ack), None)) .is_some() { - panic!("Tried to insert duplicate pending ack") + // This used to be a panic, however since we've seen this actually happen in the + // wild, let's not take the whole client (and possibly gateway) down because of it. + error!("Tried to insert duplicate pending ack! This should not be possible!") } } }