diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-15 03:35:49 +0000 |
commit | d8bbc7858622b6d9c278469aab701ca0b609cddf (patch) | |
tree | eff41dc61d9f714852212739e6b3738b82a2af87 /third_party/libwebrtc/rtc_base/async_packet_socket.cc | |
parent | Releasing progress-linux version 125.0.3-1~progress7.99u1. (diff) | |
download | firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip |
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | third_party/libwebrtc/rtc_base/async_packet_socket.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/third_party/libwebrtc/rtc_base/async_packet_socket.cc b/third_party/libwebrtc/rtc_base/async_packet_socket.cc index 3721366099..e00bd03e3b 100644 --- a/third_party/libwebrtc/rtc_base/async_packet_socket.cc +++ b/third_party/libwebrtc/rtc_base/async_packet_socket.cc @@ -45,13 +45,11 @@ void AsyncPacketSocket::RegisterReceivedPacketCallback( received_packet_callback) { RTC_DCHECK_RUN_ON(&network_checker_); RTC_CHECK(!received_packet_callback_); - SignalReadPacket.connect(this, &AsyncPacketSocket::NotifyPacketReceived); received_packet_callback_ = std::move(received_packet_callback); } void AsyncPacketSocket::DeregisterReceivedPacketCallback() { RTC_DCHECK_RUN_ON(&network_checker_); - SignalReadPacket.disconnect(this); received_packet_callback_ = nullptr; } @@ -62,17 +60,6 @@ void AsyncPacketSocket::NotifyPacketReceived( received_packet_callback_(this, packet); return; } - if (SignalReadPacket.is_empty()) { - RTC_DCHECK_NOTREACHED() << " No listener registered"; - return; - } - // TODO(bugs.webrtc.org:15368): Remove. This code path is only used if - // SignalReadyPacket is used by clients to get notification of received - // packets but actual socket implementation use NotifyPacketReceived to - // trigger the notification. - SignalReadPacket(this, reinterpret_cast<const char*>(packet.payload().data()), - packet.payload().size(), packet.source_address(), - packet.arrival_time() ? packet.arrival_time()->us() : -1); } void CopySocketInformationToPacketInfo(size_t packet_size_bytes, |