Bugfix: Endless loop if connection is broken.
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1050 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -11,7 +11,7 @@ cmd(arg)
|
|||||||
function
|
function
|
||||||
doUpdate()
|
doUpdate()
|
||||||
{
|
{
|
||||||
if(pollConn.readyState != 4)
|
if(pollConn.readyState != 4 || pollConn.status != 200)
|
||||||
return;
|
return;
|
||||||
var lines = pollConn.responseText.split("\n");
|
var lines = pollConn.responseText.split("\n");
|
||||||
for(var i=0; i < lines.length; i++) {
|
for(var i=0; i < lines.length; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user