From ccf75ede4ae02aa184a51f565ee0b4f0ace29c6f Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 17 Jul 2023 19:02:07 +0000 Subject: [PATCH] Don't scream on double close. --- VERSION | 2 +- src/IO/GenericStream.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 0044f78..ef9d814 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2307.112242 +0.2307.171901 diff --git a/src/IO/GenericStream.php b/src/IO/GenericStream.php index 051c67a..4023251 100644 --- a/src/IO/GenericStream.php +++ b/src/IO/GenericStream.php @@ -1,7 +1,7 @@ stream); + try { + fclose($this->stream); + } catch(\Error $ex) {} } public function copyTo(Stream $other): void {