mirror of
git://erdgeist.org/opentracker
synced 2025-03-12 05:31:02 +00:00
Don't only walk through outgoing connections to search for connected peers
This commit is contained in:
parent
4b3189eb44
commit
470a690e0d
2
proxy.c
2
proxy.c
@ -713,7 +713,7 @@ unlock_continue:
|
|||||||
if( ptr_a > ptr_c ) ptr_c = ptr_a;
|
if( ptr_a > ptr_c ) ptr_c = ptr_a;
|
||||||
mem = ptr_c - ptr;
|
mem = ptr_c - ptr;
|
||||||
|
|
||||||
for( i=0; i < g_connection_count; ++i ) {
|
for( i=0; i < MAX_PEERS; ++i ) {
|
||||||
if( PROXYPEER_ISCONNECTED(g_connections[i].state) ) {
|
if( PROXYPEER_ISCONNECTED(g_connections[i].state) ) {
|
||||||
void *tmp = malloc( mem );
|
void *tmp = malloc( mem );
|
||||||
if( tmp ) {
|
if( tmp ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user