From 3f81330793fc3c7cdb6b0b950c6d8813a286c6b8 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Sun, 2 Oct 2011 12:56:05 +0000 Subject: [PATCH] Fix when using different FHEMWEB instances with longpoll git-svn-id: https://svn.fhem.de/fhem/trunk@1042 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/webfrontend/pgm2/01_FHEMWEB.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/webfrontend/pgm2/01_FHEMWEB.pm b/fhem/webfrontend/pgm2/01_FHEMWEB.pm index c67c608dd..673eff4d3 100755 --- a/fhem/webfrontend/pgm2/01_FHEMWEB.pm +++ b/fhem/webfrontend/pgm2/01_FHEMWEB.pm @@ -1736,17 +1736,18 @@ FW_Notify($$) return undef if(AttrVal($dn, "room", "") ne $filter); FW_ReadIcons(); + + my @old = ($FW_wname, $FW_ME, $FW_longpoll, $FW_ss, $FW_tp); $FW_wname = $ntfy->{SNAME}; $FW_ME = "/" . AttrVal($FW_wname, "webname", "fhem"); $FW_longpoll = 1; $FW_ss = AttrVal($FW_wname, "smallscreen", 0); $FW_tp = AttrVal($FW_wname, "touchpad", $FW_ss); - my ($allSet, $hasOnOff, $txt) = FW_devState($dn, ""); + ($FW_wname, $FW_ME, $FW_longpoll, $FW_ss, $FW_tp) = @old; $ntfy->{INFORMBUF} = "" if(!defined($ntfy->{INFORMBUF})); $ntfy->{INFORMBUF} .= "$dn;$dev->{STATE};$txt\n"; -Log 0, "Sending $txt"; RemoveInternalTimer($ln); InternalTimer(gettimeofday()+0.1, "FW_FlushInform", $ln, 0);