aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api_bidirectional_connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/test_transport_api_bidirectional_connect.c')
-rw-r--r--src/transport/test_transport_api_bidirectional_connect.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/transport/test_transport_api_bidirectional_connect.c b/src/transport/test_transport_api_bidirectional_connect.c
index 1e00e982d..a5d6b6b71 100644
--- a/src/transport/test_transport_api_bidirectional_connect.c
+++ b/src/transport/test_transport_api_bidirectional_connect.c
@@ -210,14 +210,10 @@ notify_ready (void *cls, size_t size, void *buf)
210static void 210static void
211sendtask (void *cls) 211sendtask (void *cls)
212{ 212{
213 const struct GNUNET_SCHEDULER_TaskContext *tc; 213 char *receiver_s;
214 214
215 send_task = NULL; 215 send_task = NULL;
216 tc = GNUNET_SCHEDULER_get_task_context (); 216 receiver_s = GNUNET_strdup (GNUNET_i2s (&p1->id));
217 if ((tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
218 return;
219 char *receiver_s = GNUNET_strdup (GNUNET_i2s (&p1->id));
220
221 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 217 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
222 "Sending message from peer %u (`%4s') -> peer %u (`%s') !\n", 218 "Sending message from peer %u (`%4s') -> peer %u (`%s') !\n",
223 p2->no, GNUNET_i2s (&p2->id), p1->no, receiver_s); 219 p2->no, GNUNET_i2s (&p2->id), p1->no, receiver_s);