From: curt Date: Mon, 28 Jan 2002 22:48:29 +0000 (+0000) Subject: Fixes to make telnet interface work more than 1x. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9456906a0cd4e0361d89325fdff8ebcb5df1cc29;p=flightgear.git Fixes to make telnet interface work more than 1x. --- diff --git a/src/Network/props.cxx b/src/Network/props.cxx index 7452f7b5d..55a41cb80 100644 --- a/src/Network/props.cxx +++ b/src/Network/props.cxx @@ -206,6 +206,8 @@ bool FGProps::process_command( const char *cmd ) { } } else if ( command == "quit" ) { close(); + path = "/"; + return true; } else { io->writestring( "\n" ); io->writestring( "Valid commands are:\n" ); @@ -258,8 +260,6 @@ bool FGProps::process() { bool FGProps::close() { SGIOChannel *io = get_io_channel(); - set_enabled( false ); - if ( ! io->close() ) { return false; }