aboutsummaryrefslogtreecommitdiff
path: root/src/ats
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-08 13:23:23 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-08 13:23:23 +0000
commit9c4fa6919f172a0e797528882eb2463e92538fc2 (patch)
tree6d9ca246c2e94ac6ece3c2327faf0643b298781a /src/ats
parent8eaf1e0ab2e3784c3ddd8c923e2bde7987bb12e0 (diff)
downloadgnunet-9c4fa6919f172a0e797528882eb2463e92538fc2.tar.gz
gnunet-9c4fa6919f172a0e797528882eb2463e92538fc2.zip
-abort pending transmission before disconnect
Diffstat (limited to 'src/ats')
-rw-r--r--src/ats/ats_api_performance.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ats/ats_api_performance.c b/src/ats/ats_api_performance.c
index c98e1c243..bf270c05c 100644
--- a/src/ats/ats_api_performance.c
+++ b/src/ats/ats_api_performance.c
@@ -396,6 +396,11 @@ process_ats_message (void *cls, const struct GNUNET_MessageHeader *msg)
396 return; 396 return;
397reconnect: 397reconnect:
398 GNUNET_CLIENT_disconnect (ph->client); 398 GNUNET_CLIENT_disconnect (ph->client);
399 if (NULL != ph->th)
400 {
401 GNUNET_CLIENT_notify_transmit_ready_cancel (ph->th);
402 ph->th = NULL;
403 }
399 ph->client = NULL; 404 ph->client = NULL;
400 ph->task = 405 ph->task =
401 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &reconnect_task, 406 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, &reconnect_task,