Browse Source

pass local LeaseSet as const

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

4
Streaming.cpp

@ -369,7 +369,9 @@ namespace stream
const I2NPMessage * StreamingDestination::GetLeaseSet () const I2NPMessage * StreamingDestination::GetLeaseSet ()
{ {
if (!m_LeaseSet) // TODO: LeaseSet is always re-created. ivestigate
if (m_LeaseSet)
DeleteI2NPMessage (m_LeaseSet);
m_LeaseSet = CreateLeaseSet (); m_LeaseSet = CreateLeaseSet ();
return m_LeaseSet; return m_LeaseSet;
} }

Loading…
Cancel
Save