preventing multiple timer loops in case of a redefine

git-svn-id: https://svn.fhem.de/fhem/trunk@2675 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch
2013-02-09 12:51:24 +00:00
parent 27aa935f15
commit 31df01a901

View File

@@ -128,6 +128,8 @@ PRESENCE_Define($$)
{
$hash->{MODE} = $destination;
RemoveInternalTimer($hash);
InternalTimer(gettimeofday()+2, "PRESENCE_StartLocalScan", $hash, 1) unless(exists($hash->{helper}{DISABLED}) and $hash->{helper}{DISABLED});
return;