mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
conversation_module: avoid double lock
cloneConversation try to lock conversationsMtx_ a second time. Change-Id: I1e685a7ad478d1153ec480d2a7dd3ac962478099
This commit is contained in:
@ -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());
|
||||
|
Reference in New Issue
Block a user