From 6ac64e16ee69704579ebfd942183e04f32f60590 Mon Sep 17 00:00:00 2001 From: Julius Bünger Date: Wed, 27 Jun 2018 03:58:42 +0200 Subject: fix rps service/test: handle pending messages properly --- src/rps/test_rps.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/rps/test_rps.c') diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c index e7b82458a..08424022f 100644 --- a/src/rps/test_rps.c +++ b/src/rps/test_rps.c @@ -841,6 +841,13 @@ seed_peers (void *cls) unsigned int amount; unsigned int i; + if (GNUNET_YES == in_shutdown || GNUNET_YES == post_test) + { + return; + } + + GNUNET_assert (NULL != peer->rps_handle); + // TODO if malicious don't seed mal peers amount = round (.5 * num_peers); @@ -998,9 +1005,11 @@ rps_connect_adapter (void *cls, struct GNUNET_RPS_Handle *h; h = GNUNET_RPS_connect (cfg); + GNUNET_assert (NULL != h); if (NULL != cur_test_run.pre_test) cur_test_run.pre_test (cls, h); + GNUNET_assert (NULL != h); return h; } -- cgit v1.2.3