cleanup_task (void *cls,
const struct GNUNET_SCHEDULER_TaskContext *tc)
{
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "ATS shutdown initiated\n");
GAS_connectivity_done ();
GAS_addresses_done ();
GAS_plugin_done ();
{
GNUNET_log(GNUNET_ERROR_TYPE_INFO,
"Shutting down addresses\n");
+ GAS_plugin_solver_lock ();
GAS_addresses_destroy_all ();
+ GAS_plugin_solver_unlock ();
GNUNET_CONTAINER_multipeermap_destroy (GSA_addresses);
GSA_addresses = NULL;
}
void
GAS_connectivity_done ()
{
+ GAS_plugin_solver_lock ();
GNUNET_CONTAINER_multipeermap_iterate (connection_requests,
&free_request,
NULL);
+ GAS_plugin_solver_unlock ();
GNUNET_CONTAINER_multipeermap_destroy (connection_requests);
connection_requests = NULL;
}