From: Robin Appelman Date: Thu, 11 Mar 2021 17:05:04 +0000 (+0100) Subject: remove explicit fclose from S3->writeStream X-Git-Tag: v20.0.9RC1~49^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=534a9354334f2e23e50dba61fe84b662289d75ec;p=nextcloud-server.git remove explicit fclose from S3->writeStream streams get closed automatically when dropped, and in some cases the stream seems to be already closed by the S3 library, in which case trying to close it again will raise an error Signed-off-by: Robin Appelman --- diff --git a/lib/private/Files/ObjectStore/S3ObjectTrait.php b/lib/private/Files/ObjectStore/S3ObjectTrait.php index 80b8a6f132d..4d6ac3608df 100644 --- a/lib/private/Files/ObjectStore/S3ObjectTrait.php +++ b/lib/private/Files/ObjectStore/S3ObjectTrait.php @@ -104,8 +104,6 @@ trait S3ObjectTrait { throw $e; } } - - fclose($countStream); } /**