preventing multiple timer loops in case of a redefine
git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2675 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -128,8 +128,10 @@ PRESENCE_Define($$)
|
|||||||
{
|
{
|
||||||
|
|
||||||
$hash->{MODE} = $destination;
|
$hash->{MODE} = $destination;
|
||||||
InternalTimer(gettimeofday()+2, "PRESENCE_StartLocalScan", $hash, 1) unless(exists($hash->{helper}{DISABLED}) and $hash->{helper}{DISABLED});
|
|
||||||
return;
|
RemoveInternalTimer($hash);
|
||||||
|
InternalTimer(gettimeofday()+2, "PRESENCE_StartLocalScan", $hash, 1) unless(exists($hash->{helper}{DISABLED}) and $hash->{helper}{DISABLED});
|
||||||
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
elsif($destination eq "lan-bluetooth")
|
elsif($destination eq "lan-bluetooth")
|
||||||
|
|||||||
Reference in New Issue
Block a user