From: Schanzenbach, Martin Date: Wed, 25 Dec 2019 17:21:17 +0000 (+0900) Subject: merge X-Git-Tag: v0.12.2~55 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c1cf4ec20a9a3f5e804e83986dbdb8b8a0bb9ce5;p=oweals%2Fgnunet.git merge --- c1cf4ec20a9a3f5e804e83986dbdb8b8a0bb9ce5 diff --cc src/transport/test_communicator_basic.c index 4dba9d50c,e9b982897..db396ba66 --- a/src/transport/test_communicator_basic.c +++ b/src/transport/test_communicator_basic.c @@@ -196,9 -198,18 +198,17 @@@ static voi latency_timeout (void *cls) { to_task = NULL; + if (GNUNET_TIME_absolute_get_remaining (timeout).rel_value_us > 0) + { + to_task = GNUNET_SCHEDULER_add_at (timeout, + &latency_timeout, + NULL); + return; + } + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, - "Latency too high. Test failed. (Phase: %d. Received: %lu\n", - phase, - num_received); + "Latency too high. Test failed. (Phase: %d. Sent: %lu, Received: %lu)\n", + phase, num_sent, num_received); ret = 2; GNUNET_SCHEDULER_shutdown (); }