mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
pass local LeaseSet as const
This commit is contained in:
parent
25f2f932b0
commit
eeacc3e0f3
@ -369,8 +369,10 @@ namespace stream
|
||||
|
||||
const I2NPMessage * StreamingDestination::GetLeaseSet ()
|
||||
{
|
||||
if (!m_LeaseSet)
|
||||
m_LeaseSet = CreateLeaseSet ();
|
||||
// TODO: LeaseSet is always re-created. ivestigate
|
||||
if (m_LeaseSet)
|
||||
DeleteI2NPMessage (m_LeaseSet);
|
||||
m_LeaseSet = CreateLeaseSet ();
|
||||
return m_LeaseSet;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user