diff --git a/src/connectivity/turn_cache.cpp b/src/connectivity/turn_cache.cpp index 94a0d13b059b746c86d9667c4e2f719039131448..ed7783c993aa8c90c8551e87818e362fbe11aaa1 100644 --- a/src/connectivity/turn_cache.cpp +++ b/src/connectivity/turn_cache.cpp @@ -174,7 +174,7 @@ TurnCache::testTurn(IpAddr server) turn.reset(); // Stop previous TURN try { turn = std::make_unique<TurnTransport>( - params, std::move([this, server](bool ok) { + params, [this, server](bool ok) { // Stop server in an async job, because this callback can be called // immediately and cachedTurnMutex_ must not be locked. std::lock_guard<std::mutex> lock(shutdownMtx_); @@ -182,7 +182,7 @@ TurnCache::testTurn(IpAddr server) onConnectedTimer_->expires_at(std::chrono::steady_clock::now()); onConnectedTimer_->async_wait(std::bind(&TurnCache::onConnected, shared_from_this(), std::placeholders::_1, ok, server)); } - })); + }); } catch (const std::exception& e) { JAMI_ERROR("TurnTransport creation error: {}", e.what()); } diff --git a/src/jamidht/jamiaccount.cpp b/src/jamidht/jamiaccount.cpp index d934b57ac76c84b2e652e98588eacab8f061f9db..cfc3768edf3779a85f820e056887a88315335faa 100644 --- a/src/jamidht/jamiaccount.cpp +++ b/src/jamidht/jamiaccount.cpp @@ -458,7 +458,7 @@ JamiAccount::newSwarmOutgoingCallHelper(const std::shared_ptr<SIPCall>& call, co convModule()->call( uri.authority(), call, - std::move([this, uri, call](const std::string& accountUri, const DeviceId& deviceId) { + [this, uri, call](const std::string& accountUri, const DeviceId& deviceId) { std::unique_lock<std::mutex> lkSipConn(sipConnsMtx_); for (auto& [key, value] : sipConns_) { if (key.first != accountUri || key.second != deviceId) @@ -502,7 +502,7 @@ JamiAccount::newSwarmOutgoingCallHelper(const std::shared_ptr<SIPCall>& call, co JAMI_WARN("[call %s] No channeled socket with this peer. Send request", call->getCallId().c_str()); requestSIPConnection(accountUri, deviceId, type, true, call); - })); + }); } void