fix _precheck

This commit is contained in:
terrafrost 2021-08-29 13:00:21 -05:00
parent c9e4944370
commit 19e7737ead

View File

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