reference counter for destinations

This commit is contained in:
orignal 2017-07-06 16:12:06 -04:00
parent 1b97f9b6c9
commit c287fb58bd
5 changed files with 19 additions and 3 deletions

View file

@ -694,7 +694,7 @@ namespace client
ClientDestination::ClientDestination (const i2p::data::PrivateKeys& keys, bool isPublic, const std::map<std::string, std::string> * params):
LeaseSetDestination (isPublic, params),
m_Keys (keys), m_DatagramDestination (nullptr),
m_Keys (keys), m_DatagramDestination (nullptr), m_RefCounter (0),
m_ReadyChecker(GetService())
{
if (isPublic)