From bac3ca1fe5c4ce866ecab378d3d15d8488ac07c1 Mon Sep 17 00:00:00 2001 From: Kateryna Kostiuk Date: Fri, 2 Feb 2024 15:11:21 -0500 Subject: [PATCH] conversation: fix loading for case when contact not found Decrease lock number for case when contact not found. Change-Id: I8eea57f73a491624ca2397d2d8efd63c6acccfcb --- src/jamidht/conversation_module.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jamidht/conversation_module.cpp b/src/jamidht/conversation_module.cpp index c1e5b21dcd0..27e676b3fed 100644 --- a/src/jamidht/conversation_module.cpp +++ b/src/jamidht/conversation_module.cpp @@ -1458,6 +1458,9 @@ ConversationModule::loadConversations() }); if (itContact == ctx->contacts.end()) { JAMI_WARNING("Contact {} not found", otherUri); + std::lock_guard lkCv {ctx->cvMtx}; + --ctx->convNb; + ctx->cv.notify_all(); return; } std::string convFromDetails = itContact->at("conversationId");