P2PServer fix: reset ping time on disconnect

This commit is contained in:
SChernykh 2022-09-13 16:14:54 +02:00
parent f126eb7611
commit f044149004

View file

@ -1431,6 +1431,8 @@ void P2PServer::P2PClient::on_disconnected()
server->m_fastestPeer = nullptr;
}
m_pingTime = -1;
if (!m_handshakeComplete) {
LOGWARN(5, "peer " << static_cast<char*>(m_addrString) << " disconnected before finishing handshake");