diff --git a/phpseclib/Net/SFTP.php b/phpseclib/Net/SFTP.php index a532f2cd..18d741b6 100644 --- a/phpseclib/Net/SFTP.php +++ b/phpseclib/Net/SFTP.php @@ -329,14 +329,6 @@ class Net_SFTP extends Net_SSH2 */ var $partial_init = false; - /** - * Has the SFTP channel been fully negotiated? - * - * @var bool - * @access private - */ - var $full_init = false; - /** * Default Constructor. * @@ -515,7 +507,7 @@ class Net_SFTP extends Net_SSH2 return false; } - if (!$this->full_init) { + if ($this->pwd === false) { return $this->_init_sftp_connection(); }