From fba465dd62c80c521995e365e25fc8e72d644692 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Mon, 20 Jan 2025 16:49:21 -0500 Subject: [PATCH] ssb: Allow a concurrent connection if the other one is a connection in the process of closing. --- src/ssb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssb.c b/src/ssb.c index c6352d40..040bf16a 100644 --- a/src/ssb.c +++ b/src/ssb.c @@ -1408,7 +1408,7 @@ static bool _tf_ssb_is_already_connected(tf_ssb_t* ssb, uint8_t* id, tf_ssb_conn { for (tf_ssb_connection_t* connection = ssb->connections; connection; connection = connection->next) { - if (!ignore_connection || connection != ignore_connection) + if ((!ignore_connection || connection != ignore_connection) && !connection->is_closing) { if (memcmp(connection->serverpub, id, k_id_bin_len) == 0) {