diff --git a/src/jamidht/jamiaccount.cpp b/src/jamidht/jamiaccount.cpp index 830a6abc9ba8fbc3362b6fa062cb74abd80e2ee2..7228a311fc7a3e7210ca0766a52a9386a5c22dc8 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);