diff --git a/src/Helpers/TransferHelper.php b/src/Helpers/TransferHelper.php index cd6353e0..2dc03cf5 100644 --- a/src/Helpers/TransferHelper.php +++ b/src/Helpers/TransferHelper.php @@ -41,8 +41,6 @@ class TransferHelper fflush($dstHandle); if ($maxBytes !== null and ftell($dstHandle) > $maxBytes) { - fclose($srcHandle); - fclose($dstHandle); throw new SimpleException( 'File is too big (maximum size: %s)', TextHelper::useBytesUnits($maxBytes));