Browse Source

pass local LeaseSet as const

pull/48/head
orignal 11 years ago
parent
commit
eeacc3e0f3
  1. 6
      Streaming.cpp

6
Streaming.cpp

@ -369,8 +369,10 @@ namespace stream @@ -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…
Cancel
Save