From d77c782f69cc30078254f635c7aca70968375fb0 Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 30 Dec 2016 20:59:18 -0500 Subject: [PATCH] removed IdentHash from RoutingProfile --- RouterInfo.h | 2 +- Transports.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RouterInfo.h b/RouterInfo.h index e8a4ea75..c51d3ce4 100644 --- a/RouterInfo.h +++ b/RouterInfo.h @@ -168,7 +168,7 @@ namespace data bool SaveToFile (const std::string& fullPath); std::shared_ptr GetProfile () const; - void SaveProfile () { if (m_Profile) m_Profile->Save (); }; + void SaveProfile () { if (m_Profile) m_Profile->Save (GetIdentHash ()); }; void Update (const uint8_t * buf, int len); void DeleteBuffer () { delete[] m_Buffer; m_Buffer = nullptr; }; diff --git a/Transports.cpp b/Transports.cpp index b422297f..23e90e29 100644 --- a/Transports.cpp +++ b/Transports.cpp @@ -694,7 +694,7 @@ namespace transport if (profile) { profile->TunnelNonReplied(); - profile->Save(); + profile->Save(it->first); } std::unique_lock l(m_PeersMutex); it = m_Peers.erase (it);