diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-05-25 15:28:35 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-05-25 15:28:35 +0000 |
commit | e9df29f96eb5a317edd54e6fbb2fc4d4bfb4a37e (patch) | |
tree | b8b2cd7b288baf7d3b0e72959ad28d182e9be59c /src/transport/plugin_transport_tcp.c | |
parent | e784f2e7c13d8731763315b9eacf980a43e6c691 (diff) | |
download | gnunet-e9df29f96eb5a317edd54e6fbb2fc4d4bfb4a37e.tar.gz gnunet-e9df29f96eb5a317edd54e6fbb2fc4d4bfb4a37e.zip |
- preweekend fix
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 18482b11e..90bb4bc51 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -2165,6 +2165,13 @@ static void | |||
2165 | reschedule_session_timeout (struct Session *s) | 2165 | reschedule_session_timeout (struct Session *s) |
2166 | { | 2166 | { |
2167 | GNUNET_assert (NULL != s); | 2167 | GNUNET_assert (NULL != s); |
2168 | if (GNUNET_SCHEDULER_NO_TASK == s->timeout_task) | ||
2169 | { | ||
2170 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Timeout for peer `%s' %s not scheduled\n", | ||
2171 | GNUNET_i2s (&s->target), tcp_address_to_string(NULL, s->addr, s->addrlen)); | ||
2172 | return; | ||
2173 | } | ||
2174 | |||
2168 | GNUNET_assert (GNUNET_SCHEDULER_NO_TASK != s->timeout_task); | 2175 | GNUNET_assert (GNUNET_SCHEDULER_NO_TASK != s->timeout_task); |
2169 | 2176 | ||
2170 | GNUNET_SCHEDULER_cancel (s->timeout_task); | 2177 | GNUNET_SCHEDULER_cancel (s->timeout_task); |