2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

01_FHEMWEB.pm: slight fix to websocket cmd return semantic

git-svn-id: https://svn.fhem.de/fhem/trunk@19878 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-07-21 10:26:47 +00:00
parent 438e83299e
commit c41df7a93c

View File

@ -409,7 +409,8 @@ FW_Read($$)
}
$hash->{BUF} = "";
my $ret = FW_fC($data);
FW_addToWritebuffer($hash, FW_longpollInfo("JSON", $ret)."\n") if($ret);
FW_addToWritebuffer($hash,
FW_longpollInfo("JSON", defined($ret) ? $ret : "")."\n");
return;
}