allow empty/NULL context message
[oweals/gnunet.git] / src / transport / test_transport_api_monitor_peers.c
index 79b39325c8a64f2557d1664dd26900bde8bb46cb..549394944eef6a406cf09a03ef2d5a1ef0f0e0dc 100644 (file)
@@ -262,12 +262,7 @@ notify_ready (void *cls, size_t size, void *buf)
 static void
 sendtask (void *cls)
 {
-  const struct GNUNET_SCHEDULER_TaskContext *tc;
-
   send_task = NULL;
-  tc = GNUNET_SCHEDULER_get_task_context ();
-  if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
-    return;
   char *receiver_s = GNUNET_strdup (GNUNET_i2s (&p1->id));
 
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,