]> git.mxchange.org Git - flightgear.git/commitdiff
Close all iochannel connections on exit.
authorcurt <curt>
Wed, 4 Oct 2000 20:49:44 +0000 (20:49 +0000)
committercurt <curt>
Wed, 4 Oct 2000 20:49:44 +0000 (20:49 +0000)
src/GUI/gui.cxx

index f5bd04092cfe9546dfe31b445f092f135e26d883..8fd6545d378b57f13a2789e4ed95260659702f05 100644 (file)
@@ -66,6 +66,7 @@
 #include <FDM/flight.hxx>
 #include <Main/bfi.hxx>
 #include <Main/fg_init.hxx>
+#include <Main/fg_io.hxx>
 #include <Main/globals.hxx>
 #include <Main/options.hxx>
 #include <Main/views.hxx>
@@ -759,10 +760,10 @@ void goodBye(puObject *)
     }
 #endif
 
-    //  if(gps_bug)
-    //      fclose(gps_bug);
+    // close all external I/O connections
+    fgIOShutdownAll();
 
-    exit(-1);
+    exit(0);
 }