YAMAHA_BD: continue processing HTTP cmd queue even when HTTP errors occur

git-svn-id: https://svn.fhem.de/fhem/trunk@10036 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2015-11-28 16:02:57 +00:00
parent cc412566e6
commit fb883395cf

View File

@ -768,15 +768,15 @@ YAMAHA_BD_ParseResponse($$$)
readingsEndUpdate($hash, 1); readingsEndUpdate($hash, 1);
YAMAHA_BD_GetStatus($hash, 1) if($cmd ne "statusRequest" and $cmd ne "on");
YAMAHA_BD_ResetTimer($hash, 10) if($cmd eq "on");
}
if(@{$hash->{helper}{CMD_QUEUE}}) if(@{$hash->{helper}{CMD_QUEUE}})
{ {
YAMAHA_BD_HandleCmdQueue($hash); YAMAHA_BD_HandleCmdQueue($hash);
} }
YAMAHA_BD_GetStatus($hash, 1) if($cmd ne "statusRequest" and $cmd ne "on");
YAMAHA_BD_ResetTimer($hash, 10) if($cmd eq "on");
}
$hash->{helper}{AVAILABLE} = ($err ? 0 : 1); $hash->{helper}{AVAILABLE} = ($err ? 0 : 1);
} }