From eeacc3e0f39ab1ce4e9052c50ca74a32210fa514 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 20 Mar 2014 12:13:06 -0400 Subject: [PATCH] pass local LeaseSet as const --- Streaming.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Streaming.cpp b/Streaming.cpp index c5f05297..c505711a 100644 --- a/Streaming.cpp +++ b/Streaming.cpp @@ -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; }