Skip to content

Commit

Permalink
replace fclose with unset
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-temme committed Jul 22, 2024
1 parent 717d26f commit 09d86a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Logic/SSH/SSHConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ public function connect(): SSHRunner

public function disconnect(): void
{
fclose($this->_conn);
if (is_resource($this->_conn) && get_resource_type($this->_conn) === 'SSH2 Connection') {
unset($this->_conn);
}
}
}

0 comments on commit 09d86a6

Please sign in to comment.