Skip to content

Commit

Permalink
Set connection to null on disconnect.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Mar 9, 2024
1 parent 13a489c commit 6f7baa0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/PhpseclibV3/StubSftpConnectionProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function disconnect(): void
{
if ($this->connection) {
$this->connection->disconnect();
$this->connection = null;
}
}

Expand Down

0 comments on commit 6f7baa0

Please sign in to comment.