- preweekend fix
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 25 May 2012 15:28:35 +0000 (15:28 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 25 May 2012 15:28:35 +0000 (15:28 +0000)
src/transport/plugin_transport_tcp.c

index 18482b11ec9bd883bbb0bc42dd4797ac8c9281f8..90bb4bc515225cef0cdc4f747eb6b1e5f611955e 100644 (file)
@@ -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);