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:
rudolfkoenig
2015-11-20 21:22:32 +00:00
parent 8e33ed9b36
commit 727aaf87e4

View File

@@ -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;
} }