Commit fa9f53f6 authored by Pontus Freyhult's avatar Pontus Freyhult
Browse files

In com_quit, only call on com_close if needed.

Rev: src/sftp/commands.c:1.6
parent e5382e17
......@@ -307,7 +307,9 @@ com_escape(const char *arg, const char *command UNUSED)
com_quit(const char *arg UNUSED, const char *command UNUSED)
com_close( "", "INTERNAL CLOSE COMMAND" );
if( lsftp_connected() ) /* If connected */
com_close( "", "INTERNAL CLOSE COMMAND" ); /* Close connection */
printf( "Bye\n" );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment