Stop using rtc::TaskQueue::Current in RtcpTransceiver
Bug: webrtc:10191 Change-Id: Ifc080021ebcb203ea72beba8846e940a0c382dd1 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/126120 Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Reviewed-by: Sebastian Jansson <srte@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27015}
This commit is contained in:
committed by
Commit Bot
parent
dc62ae432d
commit
6318f13295
@ -97,13 +97,7 @@ RtcpTransceiverImpl::RtcpTransceiverImpl(const RtcpTransceiverConfig& config)
|
||||
}
|
||||
}
|
||||
|
||||
RtcpTransceiverImpl::~RtcpTransceiverImpl() {
|
||||
// If RtcpTransceiverImpl is destroyed off task queue, assume it is destroyed
|
||||
// after TaskQueue. In that case there is no need to Cancel periodic task.
|
||||
if (config_.task_queue == rtc::TaskQueue::Current()) {
|
||||
periodic_task_handle_.Stop();
|
||||
}
|
||||
}
|
||||
RtcpTransceiverImpl::~RtcpTransceiverImpl() = default;
|
||||
|
||||
void RtcpTransceiverImpl::AddMediaReceiverRtcpObserver(
|
||||
uint32_t remote_ssrc,
|
||||
|
||||
Reference in New Issue
Block a user