mirror of
https://github.com/SChernykh/p2pool.git
synced 2025-01-08 19:59:30 +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) {
|
||||
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);
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue