]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove explicit fclose from S3->writeStream 26168/head
authorRobin Appelman <robin@icewind.nl>
Thu, 11 Mar 2021 17:05:04 +0000 (18:05 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Wed, 17 Mar 2021 09:36:11 +0000 (09:36 +0000)
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 <robin@icewind.nl>
lib/private/Files/ObjectStore/S3ObjectTrait.php

index 80b8a6f132df56a695ebdaaa4c53140bf3c86f34..4d6ac3608df08dc87887223e08b887a2bf6a746b 100644 (file)
@@ -104,8 +104,6 @@ trait S3ObjectTrait {
                                throw $e;
                        }
                }
-
-               fclose($countStream);
        }
 
        /**