Skip to content

Commit

Permalink
re trigger timer
Browse files Browse the repository at this point in the history
  • Loading branch information
majestrate committed Aug 31, 2017
1 parent 3f409d0 commit f87a510
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libi2pd/Destination.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit f87a510

Please sign in to comment.