Skip to content
Snippets Groups Projects
Commit bdc5a12a authored by Sébastien Blin's avatar Sébastien Blin
Browse files

conversation_module: avoid double lock

cloneConversation try to lock conversationsMtx_ a second time.

Change-Id: I1e685a7ad478d1153ec480d2a7dd3ac962478099
parent 523b2780
No related branches found
No related tags found
No related merge requests found
......@@ -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());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment