Fixes to make telnet interface work more than 1x.
This commit is contained in:
parent
45807b3126
commit
9456906a0c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue