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