Don't scream on double close.
This commit is contained in:
parent
939dcd10fe
commit
ccf75ede4a
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// GenericStream.php
|
||||
// Created: 2021-04-30
|
||||
// Updated: 2022-02-27
|
||||
// Updated: 2023-07-17
|
||||
|
||||
namespace Index\IO;
|
||||
|
||||
|
@ -118,7 +118,9 @@ class GenericStream extends Stream {
|
|||
}
|
||||
|
||||
public function close(): void {
|
||||
fclose($this->stream);
|
||||
try {
|
||||
fclose($this->stream);
|
||||
} catch(\Error $ex) {}
|
||||
}
|
||||
|
||||
public function copyTo(Stream $other): void {
|
||||
|
|
Loading…
Reference in a new issue