- fix in FroxlorSshTransport::close()

This commit is contained in:
Andreas Burchert (scarya)
2010-10-24 18:58:23 +00:00
parent 1b4069f01e
commit 0be29498b0

View File

@@ -245,7 +245,10 @@ class FroxlorSshTransport
public function close() public function close()
{ {
// close the session and force flushing file content to disk // close the session and force flushing file content to disk
if (!is_null($this->_connection)) {
ssh2_exec($this->_connection, 'exit'); ssh2_exec($this->_connection, 'exit');
}
// set null values // set null values
$this->_shell = null; $this->_shell = null;