- fix coverity
[oweals/gnunet.git] / src / transport / test_transport_api_timeout.c
index aa9884a2ebfdd4c33ed485fefeb403106d8d83b6..89fabdefdc4d3d076e5558e539305710107f7e84 100644 (file)
@@ -185,13 +185,8 @@ static void
 timer (void *cls)
 {
   static int percentage;
-  const struct GNUNET_SCHEDULER_TaskContext *tc;
 
   timer_task = NULL;
-  tc = GNUNET_SCHEDULER_get_task_context ();
-  if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
-    return;
-
   percentage += 10;
   time_running =
       GNUNET_TIME_relative_add (time_running,
@@ -213,6 +208,7 @@ timer (void *cls)
   }
 }
 
+
 static void
 testing_connect_cb (struct PeerContext *p1, struct PeerContext *p2, void *cls)
 {