1
0
Fork 0

Fixes to make telnet interface work more than 1x.

This commit is contained in:
curt 2002-01-28 22:48:29 +00:00
parent 45807b3126
commit 9456906a0c

View file

@ -206,6 +206,8 @@ bool FGProps::process_command( const char *cmd ) {
} }
} else if ( command == "quit" ) { } else if ( command == "quit" ) {
close(); close();
path = "/";
return true;
} else { } else {
io->writestring( "\n" ); io->writestring( "\n" );
io->writestring( "Valid commands are:\n" ); io->writestring( "Valid commands are:\n" );
@ -258,8 +260,6 @@ bool FGProps::process() {
bool FGProps::close() { bool FGProps::close() {
SGIOChannel *io = get_io_channel(); SGIOChannel *io = get_io_channel();
set_enabled( false );
if ( ! io->close() ) { if ( ! io->close() ) {
return false; return false;
} }