fix shutdown order to prevent segfault
authorMatthias Wachs <wachs@net.in.tum.de>
Mon, 5 Sep 2011 12:29:08 +0000 (12:29 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Mon, 5 Sep 2011 12:29:08 +0000 (12:29 +0000)
src/transport/gnunet-service-transport-new.c

index b605954ac03aedbf095c8d8af5434eaabacc02e9..f4a39a1e6b1240257fd7222283b6c7909c942c3c 100644 (file)
@@ -382,12 +382,12 @@ static void
 shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
 {
   GST_validation_stop ();
+  GST_plugins_unload ();
   GST_neighbours_stop ();
   GNUNET_ATS_shutdown (GST_ats);
   GST_ats = NULL;
   GST_clients_stop ();
   GST_blacklist_stop ();
-  GST_plugins_unload ();
   GST_hello_stop ();
 
   if (GST_peerinfo != NULL)