2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

01_FHEMWEB.pm: Ignore FW_addToWriteBuffer error on closed FD (Forum #120181)

git-svn-id: https://svn.fhem.de/fhem/trunk@26241 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2022-07-17 09:21:39 +00:00
parent 1ac71b68ac
commit 296fd3f1b8

View File

@ -729,6 +729,7 @@ sub
FW_addToWritebuffer($$@)
{
my ($hash, $txt, $callback, $nolimit, $encoded) = @_;
return 0 if(!defined($hash->{FD})); # No success
$txt = Encode::encode($hash->{encoding}, $txt)
if($hash->{encoding} && !$encoded && ($unicodeEncoding ||