From 8ee36bffa3c4afdb4d41ee9cd9565bac2ead9d2c Mon Sep 17 00:00:00 2001 From: Heikki Lindholm Date: Tue, 20 Oct 2009 20:33:59 +0000 Subject: [PATCH] try to take rescheduled transmit into account --- src/util/connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/connection.c b/src/util/connection.c index 7e4825e45..980f8c072 100644 --- a/src/util/connection.c +++ b/src/util/connection.c @@ -1478,7 +1478,8 @@ GNUNET_CONNECTION_notify_transmit_ready (struct GNUNET_CONNECTION_Handle sock->nth.notify_size = size; sock->nth.transmit_timeout = GNUNET_TIME_relative_to_absolute (timeout); GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == sock->nth.timeout_task); - GNUNET_assert (GNUNET_SCHEDULER_NO_TASK == sock->write_task); + if (GNUNET_SCHEDULER_NO_TASK != sock->write_task) + return &sock->nth; if (sock->sock != NULL) { #if DEBUG_CONNECTION -- 2.25.1