mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-26 20:52:37 +00:00
don't crash on os x when no lease set found for udp tunnel
This commit is contained in:
1 parent
63d6b23344
commit
8071df0e68
1 file changed
+1
@@ -293,6 +293,7 @@ namespace datagram
|
||||
|
||||
void DatagramSession::HandleLeaseSetUpdated(std::shared_ptr<i2p::data::LeaseSet> ls)
|
||||
{
|
||||
if(!ls) return;
|
||||
// only update lease set if found and newer than previous lease set
|
||||
uint64_t oldExpire = 0;
|
||||
if(m_RemoteLeaseSet) oldExpire = m_RemoteLeaseSet->GetExpirationTime();
|
||||
|
||||
Reference in new issue
Block a user