Don't only walk through outgoing connections to search for connected peers

dynamic-accesslists
erdgeist 14 years ago
parent 4b3189eb44
commit 470a690e0d

@ -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…
Cancel
Save