mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
pass local LeaseSet as const
This commit is contained in:
parent
25f2f932b0
commit
eeacc3e0f3
1 changed files with 4 additions and 2 deletions
|
@ -369,7 +369,9 @@ namespace stream
|
|||
|
||||
const I2NPMessage * StreamingDestination::GetLeaseSet ()
|
||||
{
|
||||
if (!m_LeaseSet)
|
||||
// TODO: LeaseSet is always re-created. ivestigate
|
||||
if (m_LeaseSet)
|
||||
DeleteI2NPMessage (m_LeaseSet);
|
||||
m_LeaseSet = CreateLeaseSet ();
|
||||
return m_LeaseSet;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue