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;