01_FHEMWEB.pm: fix asyncOutput warning on removed window (Forum #120181)

git-svn-id: https://svn.fhem.de/fhem/trunk@24176 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2021-04-07 18:00:53 +00:00
parent 9217e20649
commit 6f2c3c5704

View File

@@ -759,7 +759,7 @@ FW_AsyncOutput($$)
Log3 $hash->{SNAME}, 4, "AsyncOutput from $hash->{NAME}";
$hash = $FW_id2inform{$fwid};
if($hash) {
FW_addToWritebuffer($hash, $data."\n");
FW_addToWritebuffer($hash, $data."\n") if(defined($hash->{FD})); #120181
} else {
$defs{$FW_wname}{asyncOutput}{$fwid} = $data;
}