don't stop the internal timer loop in case of network errors

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2107 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch
2012-11-10 23:37:23 +00:00
parent d120c56c00
commit 3ec39a3b1a

View File

@@ -73,18 +73,18 @@ YAMAHA_AVR_GetStatus($;$)
my $name = $hash->{NAME};
my $power;
$local = 0 unless(defined($local));
return "" if(!defined($hash->{ADDRESS}) or !defined($hash->{INTERVAL}));
my $device = $hash->{ADDRESS};
if(not defined($hash->{MODEL}))
{
getModel($hash, $device);
getModel($hash, $device);
}
if(not defined($hash->{INPUTS}) or length($hash->{INPUTS}) == 0)
{
getInputs($hash, $device);
@@ -99,7 +99,7 @@ YAMAHA_AVR_GetStatus($;$)
if($return eq "")
{
$hash->{STATE} = "unknown";
InternalTimer(gettimeofday()+$hash->{INTERVAL}, "YAMAHA_AVR_GetStatus", $hash, 1) unless($local == 1);
return;
}