Skip to content

Commit

Permalink
conversation: fix loading for case when contact not found
Browse files Browse the repository at this point in the history
Decrease lock number for case when contact not found.

Change-Id: I8eea57f73a491624ca2397d2d8efd63c6acccfcb
  • Loading branch information
katekm committed Feb 2, 2024
1 parent 5af7f92 commit bac3ca1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/jamidht/conversation_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit bac3ca1

Please sign in to comment.