diff options
author | Robin Appelman <robin@icewind.nl> | 2021-05-31 15:24:29 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-10-07 17:19:36 +0200 |
commit | 6b80ae9d4423369a95dbdd5a02ffafe8b295f746 (patch) | |
tree | 5b5f6924b5c7984cf7d6b6d1374042b62ddbe2de /apps/files_external/lib/Lib/Storage | |
parent | 7ec80b39579f6764778c74a6989972a955ba6757 (diff) | |
download | nextcloud-server-6b80ae9d4423369a95dbdd5a02ffafe8b295f746.tar.gz nextcloud-server-6b80ae9d4423369a95dbdd5a02ffafe8b295f746.zip |
teardown
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external/lib/Lib/Storage')
-rw-r--r-- | apps/files_external/lib/Lib/Storage/FTP.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/FTP.php b/apps/files_external/lib/Lib/Storage/FTP.php index 8f7155727be..3edf22d03fc 100644 --- a/apps/files_external/lib/Lib/Storage/FTP.php +++ b/apps/files_external/lib/Lib/Storage/FTP.php @@ -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 { |