Check if $rImapLiteralStream is open resource and not closed

This commit is contained in:
the-djmaze 2023-03-28 10:02:49 +02:00
parent 9a4da9d7f0
commit 78e294e98e

View file

@ -389,7 +389,7 @@ trait ResponseParser
$this->writeLogException($oException, \LOG_NOTICE, false);
}
if ($rImapLiteralStream) {
if (\is_resource($rImapLiteralStream)) {
$iNotReadLiteralLen = 0;
$bFeof = \feof($rImapLiteralStream);