From 3cf15accba112137bcc6c23602e3b091b5f0639e Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Sat, 11 May 2019 18:00:12 +0000 Subject: [PATCH] fhem.pl: some sleep fix git-svn-id: https://svn.fhem.de/fhem/trunk@19376 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/fhem.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/fhem.pl b/fhem/fhem.pl index e71d95d92..3810b24b2 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -3199,7 +3199,7 @@ CommandSleep($$) my ($err, $hr,$min,$s, $fn) = GetTimeSpec($sec); if($err) { # not a valid timespec => treat as regex if(@cmdList && $init_done) { - CommandDelete($cl, $name) if($defs{$name}); + CommandDelete($cl, $sleepers{$id}{name}) if($sleepers{$id}); $err = CommandDefine($cl, "-temporary $name notify $sec {sleep_WakeUpFn('$id')}"); $attr{$name}{ignore} = 1;