From a9ede9923c663197a15e6c83619d5c100d78303f Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Mon, 3 Jul 2017 08:06:19 +0000 Subject: [PATCH] Blocking.pm: Remove InternalTimer if the process is finished (Forum #73490) git-svn-id: https://svn.fhem.de/fhem/trunk@14633 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/Blocking.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fhem/FHEM/Blocking.pm b/fhem/FHEM/Blocking.pm index a6967d9ab..b672e5e7a 100644 --- a/fhem/FHEM/Blocking.pm +++ b/fhem/FHEM/Blocking.pm @@ -117,6 +117,7 @@ BlockingStart(;$) if(!kill(0, $h->{pid})) { $h->{pid} = "DEAD:$h->{pid}"; delete($BC_hash{$bpid}); + RemoveInternalTimer($h) if($h->{timeout}); } else { $chld_alive++; } @@ -125,6 +126,7 @@ BlockingStart(;$) if(!$h->{fn}) { # Deleted by the module in finishFn? delete($BC_hash{$bpid}); + RemoveInternalTimer($h) if($h->{timeout}); next; }