P2PServer: fixed peer list request logic

pull/271/head
SChernykh 2023-05-18 09:39:04 +02:00
parent 6a4583f758
commit f212de64f5
1 changed files with 1 additions and 1 deletions

View File

@ -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;