diff options
Diffstat (limited to 'rtc_base/thread.cc')
-rw-r--r-- | rtc_base/thread.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/rtc_base/thread.cc b/rtc_base/thread.cc index b0b0e52a07..8ca9ce76a8 100644 --- a/rtc_base/thread.cc +++ b/rtc_base/thread.cc @@ -429,13 +429,11 @@ void Thread::DoDestroy() { // The signal is done from here to ensure // that it always gets called when the queue // is going away. - SignalQueueDestroyed(); - ThreadManager::Remove(this); - ClearInternal(nullptr, MQID_ANY, nullptr); - if (ss_) { ss_->SetMessageQueue(nullptr); } + ThreadManager::Remove(this); + ClearInternal(nullptr, MQID_ANY, nullptr); } SocketServer* Thread::socketserver() { @@ -931,6 +929,7 @@ void Thread::Send(const Location& posted_from, msg.pdata = pdata; if (IsCurrent()) { #if RTC_DCHECK_IS_ON + RTC_DCHECK(this->IsInvokeToThreadAllowed(this)); RTC_DCHECK_RUN_ON(this); could_be_blocking_call_count_++; #endif |