Browse Source

check if current remote lease is not set

pull/225/head
orignal 9 years ago
parent
commit
c939dec26a
  1. 2
      Streaming.cpp

2
Streaming.cpp

@ -605,7 +605,7 @@ namespace stream @@ -605,7 +605,7 @@ namespace stream
}
auto ts = i2p::util::GetMillisecondsSinceEpoch ();
if (ts >= m_CurrentRemoteLease.endDate - i2p::tunnel::TUNNEL_EXPIRATION_THRESHOLD*1000)
if (!m_CurrentRemoteLease.endDate || ts >= m_CurrentRemoteLease.endDate - i2p::tunnel::TUNNEL_EXPIRATION_THRESHOLD*1000)
UpdateCurrentRemoteLease (true);
if (ts < m_CurrentRemoteLease.endDate)
{

Loading…
Cancel
Save