From 74c89ce06edbd1fadfc7ce97840a22149a53dfd8 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 20 Jan 2015 18:06:42 -0500 Subject: [PATCH] proper cleanup of pending tunnels --- Tunnel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Tunnel.cpp b/Tunnel.cpp index 22f92061..516a0c3d 100644 --- a/Tunnel.cpp +++ b/Tunnel.cpp @@ -209,9 +209,10 @@ namespace tunnel delete it.second; m_TransitTunnels.clear (); - /* for (auto& it : m_PendingTunnels) + ManagePendingTunnels (); + for (auto& it : m_PendingTunnels) delete it.second; - m_PendingTunnels.clear ();*/ + m_PendingTunnels.clear (); }