mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-04-23 22:08:11 +00:00
P2PServer fix: reset ping time on disconnect
This commit is contained in:
parent
f126eb7611
commit
f044149004
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue