+ prevent bug https://www.gnunet.org/bugs/view.php?id=1868
[oweals/gnunet.git] / src / transport / gnunet-service-transport.c
index 40cb2bb618b534c9d1fca0999b735ad0b261e10c..10c1c68a88fd4b315bfce6a6019c40d0a10d1e6e 100644 (file)
@@ -466,8 +466,9 @@ static void
 shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   GST_validation_stop ();
-  GST_plugins_unload ();
   GST_neighbours_stop ();
+  GST_plugins_unload ();
+
   GNUNET_ATS_scheduling_done (GST_ats);
   GST_ats = NULL;
   GST_clients_stop ();