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

jamiaccount: avoid double unlock

Change-Id: Ied0afb3269e2592b55c266c0d02874d44e5d9928
GitLab: #531
parent 4e11e8cd
Branches
No related tags found
No related merge requests found
...@@ -3590,7 +3590,6 @@ JamiAccount::sendTextMessage(const std::string& to, ...@@ -3590,7 +3590,6 @@ JamiAccount::sendTextMessage(const std::string& to,
if (lt != confirm->listenTokens.end()) { if (lt != confirm->listenTokens.end()) {
std::shared_future<size_t> tok = std::move(lt->second); std::shared_future<size_t> tok = std::move(lt->second);
confirm->listenTokens.erase(lt); confirm->listenTokens.erase(lt);
l.unlock();
dht_->cancelListen(h, tok); dht_->cancelListen(h, tok);
} }
if (confirm->listenTokens.empty() and not confirm->replied) { if (confirm->listenTokens.empty() and not confirm->replied) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment