Internal change

PiperOrigin-RevId: 360559648
This commit is contained in:
hai007
2021-03-02 18:14:44 -08:00
committed by Copybara-Service
parent ff2628071d
commit fe8a096f35
+2 -2
View File
@@ -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);