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
const I2NPMessage * StreamingDestination::GetLeaseSet () const I2NPMessage * StreamingDestination::GetLeaseSet ()
{ {
if (!m_LeaseSet) // TODO: LeaseSet is always re-created. ivestigate
m_LeaseSet = CreateLeaseSet (); if (m_LeaseSet)
DeleteI2NPMessage (m_LeaseSet);
m_LeaseSet = CreateLeaseSet ();
return m_LeaseSet; return m_LeaseSet;
} }

Loading…
Cancel
Save