From f87a51034e187ae4ca192bff224ba8bc0f362d67 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Thu, 31 Aug 2017 10:07:09 -0400 Subject: [PATCH] re trigger timer --- libi2pd/Destination.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libi2pd/Destination.cpp b/libi2pd/Destination.cpp index 5f17856b..f45e6a8a 100644 --- a/libi2pd/Destination.cpp +++ b/libi2pd/Destination.cpp @@ -698,6 +698,9 @@ namespace client } m_ReadyCallbacks.clear(); } + m_ReadyCheckTimer.expires_from_now(boost::posix_time::seconds (1)); + m_ReadyCheckTimer.async_wait(std::bind(&LeaseSetDestination::HandleReadyCheckTimer, + shared_from_this (), std::placeholders::_1)); } else { @@ -730,7 +733,7 @@ namespace client m_Keys (keys), m_DatagramDestination (nullptr), m_RefCounter (0), m_ReadyChecker(GetService()) { - if (isPublic) + if (isPublic) PersistTemporaryKeys (); else i2p::crypto::GenerateElGamalKeyPair(m_EncryptionPrivateKey, m_EncryptionPublicKey);