Browse Source

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

dynamic-accesslists
erdgeist 14 years ago
parent
commit
470a690e0d
  1. 2
      proxy.c

2
proxy.c

@ -713,7 +713,7 @@ unlock_continue: @@ -713,7 +713,7 @@ unlock_continue:
if( ptr_a > ptr_c ) ptr_c = ptr_a;
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) ) {
void *tmp = malloc( mem );
if( tmp ) {

Loading…
Cancel
Save