aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-04-24 10:18:09 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-04-24 10:18:09 +0000
commite930d9d48fc6e1f97b2cd3202767245f8327319b (patch)
tree959bcca3e2fd8b263a0f5f2b071e3cb673299b44 /src/ats/gnunet-service-ats.c
parent90eb0a272087127bac0e6b0e19b59f06e5c9584e (diff)
downloadgnunet-e930d9d48fc6e1f97b2cd3202767245f8327319b.tar.gz
gnunet-e930d9d48fc6e1f97b2cd3202767245f8327319b.zip
- fixing mantis 2282
Diffstat (limited to 'src/ats/gnunet-service-ats.c')
-rw-r--r--src/ats/gnunet-service-ats.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ats/gnunet-service-ats.c b/src/ats/gnunet-service-ats.c
index a68ec416b..5e6871096 100644
--- a/src/ats/gnunet-service-ats.c
+++ b/src/ats/gnunet-service-ats.c
@@ -39,6 +39,9 @@
39 */ 39 */
40struct GNUNET_STATISTICS_Handle *GSA_stats; 40struct GNUNET_STATISTICS_Handle *GSA_stats;
41 41
42static struct GNUNET_SERVER_Handle *GSA_server;
43
44
42/** 45/**
43 * We have received a 'ClientStartMessage' from a client. Find out which 46 * We have received a 'ClientStartMessage' from a client. Find out which
44 * type of client it is and notify the respective subsystem. 47 * type of client it is and notify the respective subsystem.
@@ -107,6 +110,8 @@ client_disconnect_handler (void *cls, struct GNUNET_SERVER_Client *client)
107static void 110static void
108cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 111cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
109{ 112{
113 GNUNET_SERVER_destroy (GSA_server);
114 GSA_server = NULL;
110 GAS_addresses_done (); 115 GAS_addresses_done ();
111 GAS_scheduling_done (); 116 GAS_scheduling_done ();
112 GAS_performance_done (); 117 GAS_performance_done ();
@@ -152,6 +157,7 @@ run (void *cls, struct GNUNET_SERVER_Handle *server,
152 GNUNET_MESSAGE_TYPE_ATS_PREFERENCE_CHANGE, 0}, 157 GNUNET_MESSAGE_TYPE_ATS_PREFERENCE_CHANGE, 0},
153 {NULL, NULL, 0, 0} 158 {NULL, NULL, 0, 0}
154 }; 159 };
160 GSA_server = server;
155 GSA_stats = GNUNET_STATISTICS_create ("ats", cfg); 161 GSA_stats = GNUNET_STATISTICS_create ("ats", cfg);
156 GAS_reservations_init (); 162 GAS_reservations_init ();
157 GAS_performance_init (server); 163 GAS_performance_init (server);