Split SFTP client cleanup into to functions.
sftp_finish() which ends the communication, disables further commands, and can explicitly be called more than once, and sftp_end() which frees the state. This prevents a race around sftp_finish() calls and sftpc_*() calls which is likely responsibe for various weirdness in SSH connections, and should fix ticket 135.
Please register or sign in to comment