1
0
Fork 0

FGIO::shutdown_all() is called from the FGIO destructor so remove the extra

explicit calls to shutdown_all() which was causing this to be called twice.
This could cause problems with some IO modules (such as attempting to close
an invalid file descriptor the second time.)
This commit is contained in:
curt 2004-12-29 20:40:41 +00:00
parent 3ad6d87576
commit ca80161dcf
2 changed files with 1 additions and 2 deletions

View file

@ -320,7 +320,7 @@ void
FGIO::shutdown_all() {
FGProtocol *p;
// cout << "processing I/O channels" << endl;
// cout << "shutting down all I/O channels" << endl;
typedef vector< FGProtocol* > container;
container::iterator i = io_channels.begin();

View file

@ -106,7 +106,6 @@ fgExit (int status)
{
SG_LOG(SG_GENERAL, SG_INFO, "Exiting FlightGear with status " << status);
globals->get_io()->shutdown_all();
exit(status);
}