diff options
-rw-r--r-- | src/transport/transport_api.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index 0ea1705ae..f1c065780 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c | |||
@@ -464,7 +464,8 @@ schedule_peer_transmission (struct GNUNET_TRANSPORT_Handle *h) | |||
464 | /* check outgoing quota */ | 464 | /* check outgoing quota */ |
465 | duration = GNUNET_BANDWIDTH_tracker_get_delay (&n->out_tracker, | 465 | duration = GNUNET_BANDWIDTH_tracker_get_delay (&n->out_tracker, |
466 | th->notify_size - sizeof (struct OutboundMessage)); | 466 | th->notify_size - sizeof (struct OutboundMessage)); |
467 | if (th->timeout.value < duration.value) | 467 | struct GNUNET_TIME_Absolute duration_abs = GNUNET_TIME_relative_to_absolute (duration); |
468 | if (th->timeout.value < duration_abs.value) | ||
468 | { | 469 | { |
469 | /* signal timeout! */ | 470 | /* signal timeout! */ |
470 | #if DEBUG_TRANSPORT | 471 | #if DEBUG_TRANSPORT |