mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 07:31:35 +02:00
Merge pull request #11082
7e0c68b p2p: don't reset timeout timer for handshakes (j-berman)
ACKs: jpk68, selsta, vtnerd
This commit is contained in:
@@ -269,6 +269,8 @@ public:
|
||||
}
|
||||
virtual bool reset_timer(bool first) override final
|
||||
{
|
||||
if (m_command == connection_context::handshake_command() && !first)
|
||||
return true;
|
||||
std::shared_ptr<anvoke_handler> self;
|
||||
if (!m_cancel_timer_called && (self = this->weak_from_this().lock()) && (first || m_timer.cancel() > 0))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user