]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/httpd.cxx
Update nasal function name.
[flightgear.git] / src / Network / httpd.cxx
index 5b591b99f7e3bc7ca2e49bf81969922b9e7686e1..e1d2b6c3beef5c7b5022956a65d290cd586ba82c 100644 (file)
@@ -3,7 +3,7 @@
 //
 // Written by Curtis Olson, started June 2001.
 //
-// Copyright (C) 2001  Curtis L. Olson - curt@flightgear.org
+// Copyright (C) 2001  Curtis L. Olson - http://www.flightgear.org/~curt
 //
 // Jpeg Image Support added August 2001
 //  by Norman Vine - nhv@cape.com
@@ -74,7 +74,12 @@ bool FGHttpd::process() {
 
 
 bool FGHttpd::close() {
-    delete server;
+    SG_LOG( SG_IO, SG_INFO, "closing FGHttpd" );   
+
+    // the following delete causes a seg fault, gdb is not helpful.
+    // delete server;
+
+    set_enabled( false );
 
     return true;
 }