mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
PRESENCE: fixing race condition of failed re-init after removed disabled attribute
git-svn-id: https://svn.fhem.de/fhem/trunk@6950 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
922528307d
commit
6038d6881e
@ -1,5 +1,7 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- bugfix: PRESENCE: fix race condition, when delete disabled attribute and
|
||||
PRESENCE does not start to scan.
|
||||
- added: OPENWEATHER: captures weather forecast from API of www.wetter.com
|
||||
- fhem 5.6 released
|
||||
|
||||
|
@ -373,14 +373,14 @@ PRESENCE_Attr(@)
|
||||
|
||||
if(defined($hash->{DeviceName}))
|
||||
{
|
||||
$hash->{helper}{DISABLED} = 0;
|
||||
|
||||
if(defined($hash->{FD}))
|
||||
{
|
||||
PRESENCE_DoInit($hash) if(exists($hash->{helper}{DISABLED}));
|
||||
$hash->{helper}{DISABLED} = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$hash->{helper}{DISABLED} = 0;
|
||||
DevIo_OpenDev($hash, 0, "PRESENCE_DoInit");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user