From fe8a096f35801f7963663dde8978430ec8f1bcdf Mon Sep 17 00:00:00 2001 From: hai007 Date: Tue, 2 Mar 2021 18:14:24 -0800 Subject: [PATCH] Internal change PiperOrigin-RevId: 360559648 --- cpp/core/internal/mediums/webrtc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/core/internal/mediums/webrtc.cc b/cpp/core/internal/mediums/webrtc.cc index 4caeca0f..1c839415 100644 --- a/cpp/core/internal/mediums/webrtc.cc +++ b/cpp/core/internal/mediums/webrtc.cc @@ -495,7 +495,7 @@ void WebRtc::SendOffer(const std::string& service_id, } const webrtc::SessionDescriptionInterface& sdp = offer.GetSdp(); - if (!connection_flow->SetLocalSessionDescription(std::move(offer))) { + if (!connection_flow->SetLocalSessionDescription(offer)) { NEARBY_LOG(INFO, "Unable to send offer. Failed to register our offer locally."); RemoveConnectionFlow(remote_peer_id); @@ -554,7 +554,7 @@ void WebRtc::SendAnswer(const PeerId& remote_peer_id) { } const webrtc::SessionDescriptionInterface& sdp = answer.GetSdp(); - if (!entry->second->SetLocalSessionDescription(std::move(answer))) { + if (!entry->second->SetLocalSessionDescription(answer)) { NEARBY_LOG(INFO, "Unable to send answer. Failed to register our answer locally."); RemoveConnectionFlow(remote_peer_id);