aboutsummaryrefslogtreecommitdiff
path: root/src/rps/gnunet-service-rps_sampler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rps/gnunet-service-rps_sampler.c')
-rw-r--r--src/rps/gnunet-service-rps_sampler.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rps/gnunet-service-rps_sampler.c b/src/rps/gnunet-service-rps_sampler.c
index f1b8f32cf..be67482fb 100644
--- a/src/rps/gnunet-service-rps_sampler.c
+++ b/src/rps/gnunet-service-rps_sampler.c
@@ -596,8 +596,9 @@ sampler_mod_get_rand_peer (void *cls,
596 596
597 s_elem = gpc->sampler->sampler_elements[client_get_index]; 597 s_elem = gpc->sampler->sampler_elements[client_get_index];
598 *gpc->id = s_elem->peer_id; 598 *gpc->id = s_elem->peer_id;
599 GNUNET_assert (NULL == s_elem);
599 600
600 if (NULL == s_elem) 601 if (EMPTY == s_elem->is_empty)
601 { 602 {
602 LOG (GNUNET_ERROR_TYPE_DEBUG, "Sampler_mod element empty, rescheduling.\n"); 603 LOG (GNUNET_ERROR_TYPE_DEBUG, "Sampler_mod element empty, rescheduling.\n");
603 GNUNET_assert (NULL == gpc->get_peer_task); 604 GNUNET_assert (NULL == gpc->get_peer_task);