mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-17 00:07:47 +00:00
Update p2p_server.cpp
This commit is contained in:
parent
dd9166e91c
commit
dac74a8829
1 changed files with 1 additions and 1 deletions
|
@ -1022,7 +1022,7 @@ void P2PServer::P2PClient::send_handshake_solution(const uint8_t (&challenge)[CH
|
||||||
if (result) {
|
if (result) {
|
||||||
work->client->m_handshakeSolutionSent = true;
|
work->client->m_handshakeSolutionSent = true;
|
||||||
|
|
||||||
if (work->client->m_handshakeInvalid) {
|
if (work->client->m_handshakeComplete && work->client->m_handshakeInvalid) {
|
||||||
work->client->ban(DEFAULT_BAN_TIME);
|
work->client->ban(DEFAULT_BAN_TIME);
|
||||||
work->server->remove_peer_from_list(work->client);
|
work->server->remove_peer_from_list(work->client);
|
||||||
work->client->close();
|
work->client->close();
|
||||||
|
|
Loading…
Reference in a new issue