From 972b32dd9457e319984a6f45c60822bbb5e83239 Mon Sep 17 00:00:00 2001 From: nasseeder1 Date: Tue, 6 Nov 2018 19:16:26 +0000 Subject: [PATCH] 93_DbRep: contrib 8.8.0 git-svn-id: https://svn.fhem.de/fhem/trunk@17696 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/DS_Starter/93_DbRep.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fhem/contrib/DS_Starter/93_DbRep.pm b/fhem/contrib/DS_Starter/93_DbRep.pm index eefa8751c..2b22a9494 100644 --- a/fhem/contrib/DS_Starter/93_DbRep.pm +++ b/fhem/contrib/DS_Starter/93_DbRep.pm @@ -1051,10 +1051,7 @@ sub DbRep_Attr($$$$) { $do = 0 if($cmd eq "del"); my $val = ($do == 1 ? "disabled" : "initialized"); ReadingsSingleUpdateValue ($hash, "state", $val, 1); - if ($do == 0) { - #RemoveInternalTimer($hash); - #InternalTimer(time+5, 'DbRep_firstconnect', "$name|||", 0); - } else { + if ($do == 1) { my $dbh = $hash->{DBH}; $dbh->disconnect() if($dbh); } @@ -1365,7 +1362,7 @@ sub DbRep_firstconnect(@) { if ($init_done == 1) { if (AttrVal($name, "fastStart", 0) && $prop eq "onBoot" ) { - $hash->{LASTCMD} = "init database connect stopped due to attribute fastStart"; + $hash->{LASTCMD} = "initial database connect stopped due to attribute 'fastStart'"; return; } # DB Struktur aus DbLog Instanz übernehmen