01_FHEMWEB.pm: fix indefined FW_id (Forum #44357)
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@9943 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -677,10 +677,13 @@ FW_answerCall($)
|
|||||||
"Content-Type: application/octet-stream; charset=$FW_encoding\r\n\r\n".
|
"Content-Type: application/octet-stream; charset=$FW_encoding\r\n\r\n".
|
||||||
FW_roomStatesForInform($me, $sinceTimestamp));
|
FW_roomStatesForInform($me, $sinceTimestamp));
|
||||||
|
|
||||||
if( my $data = $defs{$FW_wname}{asyncOutput}{$FW_id} ) {
|
if($FW_id && $defs{$FW_wname}{asyncOutput}) {
|
||||||
|
my $data = $defs{$FW_wname}{asyncOutput}{$FW_id};
|
||||||
|
if($data) {
|
||||||
addToWritebuffer($me, $data."\n");
|
addToWritebuffer($me, $data."\n");
|
||||||
delete $defs{$FW_wname}{asyncOutput}{$FW_id};
|
delete $defs{$FW_wname}{asyncOutput}{$FW_id};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user