| Index: webrtc/p2p/base/turnserver.cc
|
| diff --git a/webrtc/p2p/base/turnserver.cc b/webrtc/p2p/base/turnserver.cc
|
| index 16df6f944ba820252021866f3fa39f505da4c64d..3e9d66910ac9d7772161c8b85ccbe4814e1c2b31 100644
|
| --- a/webrtc/p2p/base/turnserver.cc
|
| +++ b/webrtc/p2p/base/turnserver.cc
|
| @@ -631,7 +631,8 @@ void TurnServerAllocation::HandleAllocateRequest(const TurnMessage* msg) {
|
|
|
| // Figure out the lifetime and start the allocation timer.
|
| int lifetime_secs = ComputeLifetime(msg);
|
| - thread_->PostDelayed(lifetime_secs * 1000, this, MSG_ALLOCATION_TIMEOUT);
|
| + thread_->PostDelayed(RTC_FROM_HERE, lifetime_secs * 1000, this,
|
| + MSG_ALLOCATION_TIMEOUT);
|
|
|
| LOG_J(LS_INFO, this) << "Created allocation, lifetime=" << lifetime_secs;
|
|
|
| @@ -659,7 +660,8 @@ void TurnServerAllocation::HandleRefreshRequest(const TurnMessage* msg) {
|
|
|
| // Reset the expiration timer.
|
| thread_->Clear(this, MSG_ALLOCATION_TIMEOUT);
|
| - thread_->PostDelayed(lifetime_secs * 1000, this, MSG_ALLOCATION_TIMEOUT);
|
| + thread_->PostDelayed(RTC_FROM_HERE, lifetime_secs * 1000, this,
|
| + MSG_ALLOCATION_TIMEOUT);
|
|
|
| LOG_J(LS_INFO, this) << "Refreshed allocation, lifetime=" << lifetime_secs;
|
|
|
| @@ -924,7 +926,8 @@ TurnServerAllocation::Permission::~Permission() {
|
|
|
| void TurnServerAllocation::Permission::Refresh() {
|
| thread_->Clear(this, MSG_ALLOCATION_TIMEOUT);
|
| - thread_->PostDelayed(kPermissionTimeout, this, MSG_ALLOCATION_TIMEOUT);
|
| + thread_->PostDelayed(RTC_FROM_HERE, kPermissionTimeout, this,
|
| + MSG_ALLOCATION_TIMEOUT);
|
| }
|
|
|
| void TurnServerAllocation::Permission::OnMessage(rtc::Message* msg) {
|
| @@ -945,7 +948,8 @@ TurnServerAllocation::Channel::~Channel() {
|
|
|
| void TurnServerAllocation::Channel::Refresh() {
|
| thread_->Clear(this, MSG_ALLOCATION_TIMEOUT);
|
| - thread_->PostDelayed(kChannelTimeout, this, MSG_ALLOCATION_TIMEOUT);
|
| + thread_->PostDelayed(RTC_FROM_HERE, kChannelTimeout, this,
|
| + MSG_ALLOCATION_TIMEOUT);
|
| }
|
|
|
| void TurnServerAllocation::Channel::OnMessage(rtc::Message* msg) {
|
|
|