From 0532f64aa80b20304950cd749930ba269214f4a5 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 11 Mar 2021 18:05:04 +0100 Subject: [PATCH] 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 --- lib/private/Files/ObjectStore/S3ObjectTrait.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/private/Files/ObjectStore/S3ObjectTrait.php b/lib/private/Files/ObjectStore/S3ObjectTrait.php index 80b8a6f132df5..4d6ac3608df08 100644 --- a/lib/private/Files/ObjectStore/S3ObjectTrait.php +++ b/lib/private/Files/ObjectStore/S3ObjectTrait.php @@ -104,8 +104,6 @@ public function writeObject($urn, $stream) { throw $e; } } - - fclose($countStream); } /**