diff options
Diffstat (limited to 'chromium/third_party/webrtc/p2p/base/stunport.cc')
-rw-r--r-- | chromium/third_party/webrtc/p2p/base/stunport.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chromium/third_party/webrtc/p2p/base/stunport.cc b/chromium/third_party/webrtc/p2p/base/stunport.cc index 16546faaf1b..8ed8c448872 100644 --- a/chromium/third_party/webrtc/p2p/base/stunport.cc +++ b/chromium/third_party/webrtc/p2p/base/stunport.cc @@ -65,7 +65,7 @@ class StunBindingRequest : public StunRequest { } // The keep-alive requests will be stopped after its lifetime has passed. - if (WithinLifetime(rtc::Time64())) { + if (WithinLifetime(rtc::TimeMillis())) { port_->requests_.SendDelayed( new StunBindingRequest(port_, server_addr_, start_time_, lifetime_), port_->stun_keepalive_delay()); @@ -85,9 +85,9 @@ class StunBindingRequest : public StunRequest { port_->OnStunBindingOrResolveRequestFailed(server_addr_); - int64_t now = rtc::Time64(); + int64_t now = rtc::TimeMillis(); if (WithinLifetime(now) && - rtc::TimeDiff64(now, start_time_) < RETRY_TIMEOUT) { + rtc::TimeDiff(now, start_time_) < RETRY_TIMEOUT) { port_->requests_.SendDelayed( new StunBindingRequest(port_, server_addr_, start_time_, lifetime_), port_->stun_keepalive_delay()); @@ -105,7 +105,7 @@ class StunBindingRequest : public StunRequest { // Returns true if |now| is within the lifetime of the request (a negative // lifetime means infinite). bool WithinLifetime(int64_t now) const { - return lifetime_ < 0 || rtc::TimeDiff64(now, start_time_) <= lifetime_; + return lifetime_ < 0 || rtc::TimeDiff(now, start_time_) <= lifetime_; } UDPPort* port_; const rtc::SocketAddress server_addr_; @@ -411,7 +411,7 @@ void UDPPort::SendStunBindingRequest(const rtc::SocketAddress& stun_addr) { } else if (socket_->GetState() == rtc::AsyncPacketSocket::STATE_BOUND) { // Check if |server_addr_| is compatible with the port's ip. if (IsCompatibleAddress(stun_addr)) { - requests_.Send(new StunBindingRequest(this, stun_addr, rtc::Time64(), + requests_.Send(new StunBindingRequest(this, stun_addr, rtc::TimeMillis(), stun_keepalive_lifetime_)); } else { // Since we can't send stun messages to the server, we should mark this |