From 0227c2ab47de85f0f0306f283fe2b3dce51a380d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Fri, 6 Oct 2023 10:59:16 -0400 Subject: [PATCH] jamiaccount: remove duplicate check Change-Id: I3beed7ff82d3bb5055b5c50e4c4e358d9eec8f67 --- src/jamidht/jamiaccount.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/jamidht/jamiaccount.cpp b/src/jamidht/jamiaccount.cpp index 830a6abc9b..7228a311fc 100644 --- a/src/jamidht/jamiaccount.cpp +++ b/src/jamidht/jamiaccount.cpp @@ -2197,14 +2197,7 @@ JamiAccount::convModule() return; } - std::unique_lock<std::mutex> lk(shared->sipConnsMtx_); - // Verify that the connection is not already cached - SipConnectionKey key(uri, deviceId.toString()); - auto it = shared->sipConns_.find(key); - if (it == shared->sipConns_.end()) { - lk.unlock(); - shared->requestSIPConnection(uri, deviceId, ""); - } + shared->requestSIPConnection(uri, deviceId, ""); } cb(socket); -- GitLab