diff options
Diffstat (limited to 'src/rps/gnunet-rps-profiler.c')
-rw-r--r-- | src/rps/gnunet-rps-profiler.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rps/gnunet-rps-profiler.c b/src/rps/gnunet-rps-profiler.c index 16f23e86c..ec73f1803 100644 --- a/src/rps/gnunet-rps-profiler.c +++ b/src/rps/gnunet-rps-profiler.c | |||
@@ -888,6 +888,7 @@ shutdown_op (void *cls) | |||
888 | if (NULL != post_test_task) | 888 | if (NULL != post_test_task) |
889 | { | 889 | { |
890 | GNUNET_SCHEDULER_cancel (post_test_task); | 890 | GNUNET_SCHEDULER_cancel (post_test_task); |
891 | post_test_task = NULL; | ||
891 | } | 892 | } |
892 | if (NULL != churn_task) | 893 | if (NULL != churn_task) |
893 | { | 894 | { |
@@ -899,6 +900,7 @@ shutdown_op (void *cls) | |||
899 | if (NULL != rps_peers[i].rps_handle) | 900 | if (NULL != rps_peers[i].rps_handle) |
900 | { | 901 | { |
901 | GNUNET_RPS_disconnect (rps_peers[i].rps_handle); | 902 | GNUNET_RPS_disconnect (rps_peers[i].rps_handle); |
903 | rps_peers[i].rps_handle = NULL; | ||
902 | } | 904 | } |
903 | if (NULL != rps_peers[i].op) | 905 | if (NULL != rps_peers[i].op) |
904 | { | 906 | { |
@@ -2570,7 +2572,7 @@ test_run (void *cls, | |||
2570 | if (NULL != churn_task) | 2572 | if (NULL != churn_task) |
2571 | GNUNET_SCHEDULER_cancel (churn_task); | 2573 | GNUNET_SCHEDULER_cancel (churn_task); |
2572 | post_test_task = GNUNET_SCHEDULER_add_delayed (timeout, &post_test_op, NULL); | 2574 | post_test_task = GNUNET_SCHEDULER_add_delayed (timeout, &post_test_op, NULL); |
2573 | timeout = GNUNET_TIME_relative_multiply (timeout, 1 + (0.1 * num_peers)); | 2575 | timeout = GNUNET_TIME_relative_multiply (timeout, 1.2 + (0.01 * num_peers)); |
2574 | shutdown_task = GNUNET_SCHEDULER_add_shutdown (shutdown_op, NULL); | 2576 | shutdown_task = GNUNET_SCHEDULER_add_shutdown (shutdown_op, NULL); |
2575 | shutdown_task = GNUNET_SCHEDULER_add_delayed (timeout, &shutdown_op, NULL); | 2577 | shutdown_task = GNUNET_SCHEDULER_add_delayed (timeout, &shutdown_op, NULL); |
2576 | 2578 | ||