diff options
-rw-r--r-- | src/rps/gnunet-service-rps_sampler.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rps/gnunet-service-rps_sampler.c b/src/rps/gnunet-service-rps_sampler.c index 1ab00aaf5..8e4798840 100644 --- a/src/rps/gnunet-service-rps_sampler.c +++ b/src/rps/gnunet-service-rps_sampler.c | |||
@@ -579,13 +579,13 @@ RPS_sampler_get_rand_peer (RPS_sampler_rand_peer_ready_cb cb, | |||
579 | { | 579 | { |
580 | do | 580 | do |
581 | { | 581 | { |
582 | *id = sampler->sampler_elements[client_get_index]->peer_id; | 582 | *id = sampler->sampler_elements[client_get_index]->peer_id; |
583 | 583 | ||
584 | RPS_sampler_elem_reinit (sampler->sampler_elements[client_get_index]); | 584 | RPS_sampler_elem_reinit (sampler->sampler_elements[client_get_index]); |
585 | if ( client_get_index == sampler->sampler_size ) | 585 | if ( client_get_index == sampler->sampler_size ) |
586 | client_get_index = 0; | 586 | client_get_index = 0; |
587 | else | 587 | else |
588 | client_get_index++; | 588 | client_get_index++; |
589 | } while (NOT_EMPTY == sampler->sampler_elements[client_get_index]->is_empty); | 589 | } while (NOT_EMPTY == sampler->sampler_elements[client_get_index]->is_empty); |
590 | 590 | ||
591 | cb (cls, id); | 591 | cb (cls, id); |