Don't scream on double close.

This commit is contained in:
Pachira 2023-07-17 19:02:07 +00:00
parent 939dcd10fe
commit ccf75ede4a
2 changed files with 5 additions and 3 deletions

View file

@ -1 +1 @@
0.2307.112242 0.2307.171901

View file

@ -1,7 +1,7 @@
<?php <?php
// GenericStream.php // GenericStream.php
// Created: 2021-04-30 // Created: 2021-04-30
// Updated: 2022-02-27 // Updated: 2023-07-17
namespace Index\IO; namespace Index\IO;
@ -118,7 +118,9 @@ class GenericStream extends Stream {
} }
public function close(): void { public function close(): void {
try {
fclose($this->stream); fclose($this->stream);
} catch(\Error $ex) {}
} }
public function copyTo(Stream $other): void { public function copyTo(Stream $other): void {