mirror of
https://github.com/nextcloud/server.git
synced 2026-04-26 00:27:49 -04:00
teardown
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
7ec80b3957
commit
6b80ae9d44
2 changed files with 6 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ class FTP extends Common {
|
|||
private $port;
|
||||
private $utf8Mode;
|
||||
|
||||
/** @var FtpConnection */
|
||||
/** @var FtpConnection|null */
|
||||
private $connection;
|
||||
|
||||
public function __construct($params) {
|
||||
|
|
@ -65,6 +65,10 @@ class FTP extends Common {
|
|||
}
|
||||
}
|
||||
|
||||
public function __destruct() {
|
||||
$this->connection = null;
|
||||
}
|
||||
|
||||
protected function getConnection(): FtpConnection {
|
||||
if (!$this->connection) {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ class FtpTest extends \Test\Files\Storage\Storage {
|
|||
if ($this->instance) {
|
||||
$this->instance->rmdir('');
|
||||
}
|
||||
$this->instance = null;
|
||||
|
||||
parent::tearDown();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue