mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-01-24 11:15:57 +00:00
P2PServer: fixed peer list request logic
This commit is contained in:
parent
6a4583f758
commit
f212de64f5
1 changed files with 1 additions and 1 deletions
|
@ -1992,7 +1992,7 @@ bool P2PServer::P2PClient::on_block_response(const uint8_t* buf, uint32_t size,
|
||||||
|
|
||||||
if (!size) {
|
if (!size) {
|
||||||
LOGINFO(5, "peer " << log::Gray() << static_cast<char*>(m_addrString) << log::NoColor() << " sent an empty block response");
|
LOGINFO(5, "peer " << log::Gray() << static_cast<char*>(m_addrString) << log::NoColor() << " sent an empty block response");
|
||||||
if (cur_time >= m_nextOutgoingPeerListRequest) {
|
if (expected_id.empty() && (cur_time >= m_nextOutgoingPeerListRequest)) {
|
||||||
server->send_peer_list_request(this, cur_time);
|
server->send_peer_list_request(this, cur_time);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue