allow empty/NULL context message
[oweals/gnunet.git] / src / transport / transport-testing.c
index 652a4e08f6f057657744e9df04cd70e708fc85e1..4a514ea724cbfe404b15da11bd8524c1824641b7 100644 (file)
@@ -220,7 +220,7 @@ hello_offered (void *cls)
 /**
  * Offer the current HELLO of P2 to P1.
  *
- * @param cls our `struct GNUNET_TRANSPORT_TESTING_ConnectRequest `
+ * @param cls our `struct GNUNET_TRANSPORT_TESTING_ConnectRequest`
  */
 static void
 offer_hello (void *cls)
@@ -228,12 +228,8 @@ offer_hello (void *cls)
   struct GNUNET_TRANSPORT_TESTING_ConnectRequest *cc = cls;
   struct PeerContext *p1 = cc->p1;
   struct PeerContext *p2 = cc->p2;
-  const struct GNUNET_SCHEDULER_TaskContext *tc;
 
   cc->tct = NULL;
-  tc = GNUNET_SCHEDULER_get_task_context ();
-  if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
-    return;
   {
     char *p2_s = GNUNET_strdup (GNUNET_i2s (&p2->id));