2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 10:46:53 +00:00

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
This commit is contained in:
rudolfkoenig 2017-07-03 08:06:19 +00:00
parent 7c16584b2e
commit a9ede9923c

View File

@ -117,6 +117,7 @@ BlockingStart(;$)
if(!kill(0, $h->{pid})) { if(!kill(0, $h->{pid})) {
$h->{pid} = "DEAD:$h->{pid}"; $h->{pid} = "DEAD:$h->{pid}";
delete($BC_hash{$bpid}); delete($BC_hash{$bpid});
RemoveInternalTimer($h) if($h->{timeout});
} else { } else {
$chld_alive++; $chld_alive++;
} }
@ -125,6 +126,7 @@ BlockingStart(;$)
if(!$h->{fn}) { # Deleted by the module in finishFn? if(!$h->{fn}) { # Deleted by the module in finishFn?
delete($BC_hash{$bpid}); delete($BC_hash{$bpid});
RemoveInternalTimer($h) if($h->{timeout});
next; next;
} }