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

Blocking.pm: fix error message in race condition (Forum #60333)

git-svn-id: https://svn.fhem.de/fhem/trunk@12521 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-11-07 14:29:48 +00:00
parent 2a3bed339f
commit 9e2bfca68e

View File

@ -83,8 +83,8 @@ BlockingStart(;$)
{
my ($curr) = @_;
if($curr && $curr =~ m/^\d+$/ && $BC_hash{$curr}) {
$BC_hash{$curr}{terminated} = 1;
if($curr && $curr =~ m/^\d+$/) {
$BC_hash{$curr}{terminated} = 1 if($BC_hash{$curr});
$curr = undef;
}