mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Internal change
PiperOrigin-RevId: 359161492
This commit is contained in:
committed by
Shane Fitzpatrick
parent
ede9f62e43
commit
e9c2d0a173
@@ -658,7 +658,6 @@ TEST_P(BasePcpHandlerTest, DestructorIsCalledOnProtocolEndpoint) {
|
||||
channel_b->Close();
|
||||
bwu.Shutdown();
|
||||
pcp_handler.DisconnectFromEndpointManager();
|
||||
bwu.Shutdown();
|
||||
}
|
||||
EXPECT_EQ(destroyed_flag.load(), mediums_count);
|
||||
env_.Stop();
|
||||
|
||||
@@ -68,7 +68,6 @@ cc_library(
|
||||
visibility = [
|
||||
"//core/internal:__pkg__",
|
||||
"//core/internal/mediums:__pkg__",
|
||||
"//core/internal/mediums/ble_v2:__pkg__",
|
||||
"//core/internal/mediums/webrtc:__pkg__",
|
||||
],
|
||||
deps = [
|
||||
|
||||
@@ -458,6 +458,13 @@ void WebRtc::SendOffer(const std::string& service_id,
|
||||
}
|
||||
|
||||
SessionDescriptionWrapper offer = connection_flow->CreateOffer();
|
||||
if (!offer.IsValid()) {
|
||||
NEARBY_LOG(INFO,
|
||||
"Unable to send offer. Failed to create our offer locally.");
|
||||
RemoveConnectionFlow(remote_peer_id);
|
||||
return;
|
||||
}
|
||||
|
||||
const webrtc::SessionDescriptionInterface& sdp = offer.GetSdp();
|
||||
if (!connection_flow->SetLocalSessionDescription(std::move(offer))) {
|
||||
NEARBY_LOG(INFO,
|
||||
@@ -510,6 +517,13 @@ void WebRtc::SendAnswer(const PeerId& remote_peer_id) {
|
||||
}
|
||||
|
||||
SessionDescriptionWrapper answer = entry->second->CreateAnswer();
|
||||
if (!answer.IsValid()) {
|
||||
NEARBY_LOG(INFO,
|
||||
"Unable to send answer. Failed to create our answer locally.");
|
||||
RemoveConnectionFlow(remote_peer_id);
|
||||
return;
|
||||
}
|
||||
|
||||
const webrtc::SessionDescriptionInterface& sdp = answer.GetSdp();
|
||||
if (!entry->second->SetLocalSessionDescription(std::move(answer))) {
|
||||
NEARBY_LOG(INFO,
|
||||
|
||||
Reference in New Issue
Block a user