Internal change

PiperOrigin-RevId: 370796827
This commit is contained in:
hai007
2021-04-27 17:24:10 -07:00
committed by Copybara-Service
parent d9da18414a
commit 857958c87f
+2 -4
View File
@@ -255,11 +255,9 @@ WebRtcSocketWrapper WebRtc::AttemptToConnect(
// This registers ourselves w/ Tachyon, creating a room from the PeerId.
// This allows a remote device to message us over Tachyon.
auto signaling_complete_callback = [this, &socket_future](bool success) {
auto signaling_complete_callback = [socket_future](bool success) mutable {
if (!success) {
OffloadFromThread("rtc-signaling-fail", [&socket_future]() {
socket_future.SetException({Exception::kFailed});
});
socket_future.SetException({Exception::kFailed});
}
};
if (!info.signaling_messenger->StartReceivingMessages(