aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport-testing.c')
-rw-r--r--src/transport/transport-testing.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/transport/transport-testing.c b/src/transport/transport-testing.c
index 652a4e08f..4a514ea72 100644
--- a/src/transport/transport-testing.c
+++ b/src/transport/transport-testing.c
@@ -220,7 +220,7 @@ hello_offered (void *cls)
220/** 220/**
221 * Offer the current HELLO of P2 to P1. 221 * Offer the current HELLO of P2 to P1.
222 * 222 *
223 * @param cls our `struct GNUNET_TRANSPORT_TESTING_ConnectRequest ` 223 * @param cls our `struct GNUNET_TRANSPORT_TESTING_ConnectRequest`
224 */ 224 */
225static void 225static void
226offer_hello (void *cls) 226offer_hello (void *cls)
@@ -228,12 +228,8 @@ offer_hello (void *cls)
228 struct GNUNET_TRANSPORT_TESTING_ConnectRequest *cc = cls; 228 struct GNUNET_TRANSPORT_TESTING_ConnectRequest *cc = cls;
229 struct PeerContext *p1 = cc->p1; 229 struct PeerContext *p1 = cc->p1;
230 struct PeerContext *p2 = cc->p2; 230 struct PeerContext *p2 = cc->p2;
231 const struct GNUNET_SCHEDULER_TaskContext *tc;
232 231
233 cc->tct = NULL; 232 cc->tct = NULL;
234 tc = GNUNET_SCHEDULER_get_task_context ();
235 if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
236 return;
237 { 233 {
238 char *p2_s = GNUNET_strdup (GNUNET_i2s (&p2->id)); 234 char *p2_s = GNUNET_strdup (GNUNET_i2s (&p2->id));
239 235