Browse Source

removed IdentHash from RoutingProfile

pull/759/head
orignal 8 years ago
parent
commit
d77c782f69
  1. 2
      RouterInfo.h
  2. 2
      Transports.cpp

2
RouterInfo.h

@ -168,7 +168,7 @@ namespace data @@ -168,7 +168,7 @@ namespace data
bool SaveToFile (const std::string& fullPath);
std::shared_ptr<RouterProfile> 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; };

2
Transports.cpp

@ -694,7 +694,7 @@ namespace transport @@ -694,7 +694,7 @@ namespace transport
if (profile)
{
profile->TunnelNonReplied();
profile->Save();
profile->Save(it->first);
}
std::unique_lock<std::mutex> l(m_PeersMutex);
it = m_Peers.erase (it);

Loading…
Cancel
Save