Skip to content
Snippets Groups Projects
Commit bac3ca1f authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

conversation: fix loading for case when contact not found

Decrease lock number for case when contact not found.

Change-Id: I8eea57f73a491624ca2397d2d8efd63c6acccfcb
parent 5af7f926
No related branches found
No related tags found
No related merge requests found
...@@ -1458,6 +1458,9 @@ ConversationModule::loadConversations() ...@@ -1458,6 +1458,9 @@ ConversationModule::loadConversations()
}); });
if (itContact == ctx->contacts.end()) { if (itContact == ctx->contacts.end()) {
JAMI_WARNING("Contact {} not found", otherUri); JAMI_WARNING("Contact {} not found", otherUri);
std::lock_guard lkCv {ctx->cvMtx};
--ctx->convNb;
ctx->cv.notify_all();
return; return;
} }
std::string convFromDetails = itContact->at("conversationId"); std::string convFromDetails = itContact->at("conversationId");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment