Remove HasSctpDataChannels() and just use HasDataChannels()
Bug: none Change-Id: I372cd386ad8ec057237889860802865836baaa0c Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/298821 Auto-Submit: Tomas Gunnarsson <tommi@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Commit-Queue: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/main@{#39650}
This commit is contained in:
parent
4bfc4ac4b0
commit
9a2938b24c
@ -91,10 +91,6 @@ class DataChannelController : public SctpDataChannelControllerInterface,
|
||||
bool HasDataChannels() const;
|
||||
// At some point in time, a data channel has existed.
|
||||
bool HasUsedDataChannels() const;
|
||||
bool HasSctpDataChannels() const {
|
||||
RTC_DCHECK_RUN_ON(signaling_thread());
|
||||
return !sctp_data_channels_.empty();
|
||||
}
|
||||
|
||||
// Accessors
|
||||
DataChannelTransportInterface* data_channel_transport() const;
|
||||
|
||||
@ -3265,7 +3265,7 @@ bool SdpOfferAnswerHandler::CheckIfNegotiationIsNeeded() {
|
||||
|
||||
// 4. If connection has created any RTCDataChannels, and no m= section in
|
||||
// description has been negotiated yet for data, return true.
|
||||
if (data_channel_controller()->HasSctpDataChannels()) {
|
||||
if (data_channel_controller()->HasDataChannels()) {
|
||||
if (!cricket::GetFirstDataContent(description->description()->contents()))
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user