From ffaf77b1ea96c2d844e464fb5067b5fddbb1ad31 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Mon, 2 Mar 2026 18:29:20 -0500 Subject: [PATCH] Disable unsafe assertion (safe race allows). --- src/sessions/session_server.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sessions/session_server.cpp b/src/sessions/session_server.cpp index fec7c859a..29c484d8c 100644 --- a/src/sessions/session_server.cpp +++ b/src/sessions/session_server.cpp @@ -290,7 +290,9 @@ void session_server::handle_channel_stop(const code& LOG_ONLY(ec), LOGS("Inbound " << name_ << " channel stop [" << channel->endpoint() << "] " << ec.message()); - BC_ASSERT(!is_zero(channel_count_)); + // There is a start/stop race with handle_channel_start that can result + // in channel_count_ of zero here before the first increment. + ////BC_ASSERT(!is_zero(channel_count_)); channel_count_ = floored_subtract(channel_count_, one); }