2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-26 04:24:53 +00:00

70_ZoneMinder: fix afterInitialized (thx GeberNehmer)

git-svn-id: https://svn.fhem.de/fhem/trunk@22251 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
delmar 2020-06-24 13:13:36 +00:00
parent 61a643e512
commit 8f5cf3b89e
2 changed files with 7 additions and 1 deletions

@ -1,5 +1,6 @@
# 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: 70_ZoneMinder: fix afterInitialized (thx GeberNehmer)
- bugfix: 73_AutoShuttersControl: change shading reading message
- feature: 76_SMAPortal: upgrade to V3. This version is not compatible to
prior V2. Attributes and Readings are changed.

@ -99,7 +99,12 @@ sub ZoneMinder_Define {
my $triggerPortState = $hash->{STATE};
ZoneMinder_updateState( $hash, $triggerPortState, 'n/a' );
ZoneMinder_afterInitialized($hash);
if (!$init_done) {
InternalTimer(gettimeofday()+5, "ZoneMinder_afterInitialized", $hash, 0);
}
else {
ZoneMinder_afterInitialized($hash);
}
return undef;
}