projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e784f2e
)
- preweekend fix
author
Matthias Wachs
<wachs@net.in.tum.de>
Fri, 25 May 2012 15:28:35 +0000
(15:28 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Fri, 25 May 2012 15:28:35 +0000
(15:28 +0000)
src/transport/plugin_transport_tcp.c
patch
|
blob
|
history
diff --git
a/src/transport/plugin_transport_tcp.c
b/src/transport/plugin_transport_tcp.c
index 18482b11ec9bd883bbb0bc42dd4797ac8c9281f8..90bb4bc515225cef0cdc4f747eb6b1e5f611955e 100644
(file)
--- a/
src/transport/plugin_transport_tcp.c
+++ b/
src/transport/plugin_transport_tcp.c
@@
-2165,6
+2165,13
@@
static void
reschedule_session_timeout (struct Session *s)
{
GNUNET_assert (NULL != s);
+ if (GNUNET_SCHEDULER_NO_TASK == s->timeout_task)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Timeout for peer `%s' %s not scheduled\n",
+ GNUNET_i2s (&s->target), tcp_address_to_string(NULL, s->addr, s->addrlen));
+ return;
+ }
+
GNUNET_assert (GNUNET_SCHEDULER_NO_TASK != s->timeout_task);
GNUNET_SCHEDULER_cancel (s->timeout_task);