Remove rtc::Location from SendTask test helper
that rtc::Location parameter was used only as extra information for the RTC_CHECKs directly in the function, thus call stack of the crash should provide all the information about the caller. Bug: webrtc:11318 Change-Id: Iec6dd2c5de547f3e1601647a614be7ce57a55734 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/270920 Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37748}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
e2d829cf77
commit
e519f38eaa
@ -362,15 +362,14 @@ void RampUpTester::TriggerTestDone() {
|
||||
|
||||
// Stop polling stats.
|
||||
// Corner case for field_trials=WebRTC-QuickPerfTest/Enabled/
|
||||
SendTask(RTC_FROM_HERE, task_queue_, [this] { pending_task_.Stop(); });
|
||||
SendTask(task_queue_, [this] { pending_task_.Stop(); });
|
||||
|
||||
// TODO(holmer): Add audio send stats here too when those APIs are available.
|
||||
if (!send_stream_)
|
||||
return;
|
||||
|
||||
VideoSendStream::Stats send_stats;
|
||||
SendTask(RTC_FROM_HERE, task_queue_,
|
||||
[&] { send_stats = send_stream_->GetStats(); });
|
||||
SendTask(task_queue_, [&] { send_stats = send_stream_->GetStats(); });
|
||||
|
||||
send_stream_ = nullptr; // To avoid dereferencing a bad pointer.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user