diff --git a/contrib/epee/include/net/levin_protocol_handler_async.h b/contrib/epee/include/net/levin_protocol_handler_async.h index 4a0e56514..e094f8c76 100644 --- a/contrib/epee/include/net/levin_protocol_handler_async.h +++ b/contrib/epee/include/net/levin_protocol_handler_async.h @@ -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 self; if (!m_cancel_timer_called && (self = this->weak_from_this().lock()) && (first || m_timer.cancel() > 0)) {