From 286586022d25c8a9df50bf32c6a2f1f6754b502a Mon Sep 17 00:00:00 2001 From: Alexander Bushnev Date: Wed, 13 Nov 2024 15:12:39 +0100 Subject: [PATCH] Cleanup pending query only on final --- src/session/liveliness.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/session/liveliness.c b/src/session/liveliness.c index a7219729b..a02a99cc3 100644 --- a/src/session/liveliness.c +++ b/src/session/liveliness.c @@ -226,10 +226,6 @@ z_result_t _z_liveliness_pending_query_reply(_z_session_t *zn, uint32_t interest } } - if (ret == _Z_RES_OK) { - _z_liveliness_pending_query_intmap_remove(&zn->_liveliness_pending_queries, interest_id); - } - _zp_session_unlock_mutex(zn); return ret;