GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Core service shutting down.\n");
#endif
- GNUNET_assert (transport != NULL);
- GNUNET_TRANSPORT_disconnect (transport);
- transport = NULL;
while (NULL != (n = neighbours))
{
neighbours = n->next;
neighbour_count--;
free_neighbour (n);
}
+ GNUNET_assert (transport != NULL);
+ GNUNET_TRANSPORT_disconnect (transport);
+ transport = NULL;
GNUNET_STATISTICS_set (stats, gettext_noop ("# neighbour entries allocated"), neighbour_count, GNUNET_NO);
GNUNET_SERVER_notification_context_destroy (notifier);
notifier = NULL;