]> git.mxchange.org Git - flightgear.git/commitdiff
Fixes to make telnet interface work more than 1x.
authorcurt <curt>
Mon, 28 Jan 2002 22:48:29 +0000 (22:48 +0000)
committercurt <curt>
Mon, 28 Jan 2002 22:48:29 +0000 (22:48 +0000)
src/Network/props.cxx

index 7452f7b5daa1d7b904a7b041f2e298dda54896c8..55a41cb807ee6c9541aa3028318bf6f1fb7d2cc5 100644 (file)
@@ -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;
     }