diff --git a/src/p2p_server.cpp b/src/p2p_server.cpp index 9a3747f..c55614f 100644 --- a/src/p2p_server.cpp +++ b/src/p2p_server.cpp @@ -1260,6 +1260,11 @@ void P2PServer::api_update_local_stats() << client->m_broadcastMaxHeight << ',' << static_cast(client->m_addrString) << '"'; + + if (s.m_pos + 128 >= s.m_bufSize) { + break; + } + first = false; } }