conversation_module: avoid double lock

cloneConversation try to lock conversationsMtx_ a second time.

Change-Id: I1e685a7ad478d1153ec480d2a7dd3ac962478099
This commit is contained in:
Sébastien Blin
2022-01-12 13:11:36 -05:00
parent 523b2780bf
commit bdc5a12a07

View File

@ -407,11 +407,11 @@ ConversationModule::Impl::fetchNewCommits(const std::string& peer,
auto convIt = convInfos_.find(conversationId);
clone = convIt != convInfos_.end();
}
lk.unlock();
if (clone) {
cloneConversation(deviceId, peer, conversationId);
return;
}
lk.unlock();
JAMI_WARN("[Account %s] Could not find conversation %s, ask for an invite",
accountId_.c_str(),
conversationId.c_str());