Skip to content

Commit

Permalink
Immediately return connection after creating it.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdejonge committed Jan 29, 2022
1 parent 03ce85c commit 94fd431
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Ftp/FtpAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ private function connection()
if ( ! $this->hasFtpConnection()) {
$this->connection = $this->connectionProvider->createConnection($this->connectionOptions);
$this->rootDirectory = $this->resolveConnectionRoot($this->connection);

return $this->connection;
}

if ($this->connectivityChecker->isConnected($this->connection) === false) {
Expand Down

0 comments on commit 94fd431

Please sign in to comment.