10_FBDECT.pm: better cleanup after delete (Forum 135948)
git-svn-id: https://svn.fhem.de/fhem/trunk@28212 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -844,8 +844,9 @@ sub
|
|||||||
FBDECT_Undef($$)
|
FBDECT_Undef($$)
|
||||||
{
|
{
|
||||||
my ($hash, $arg) = @_;
|
my ($hash, $arg) = @_;
|
||||||
my $homeId = $hash->{homeId};
|
my $iodev = $hash->{IODev};
|
||||||
my $id = $hash->{id};
|
my $id = $hash->{id};
|
||||||
|
delete $modules{FBDECT}{defptr}{"$iodev->{NAME}:$id"} if($iodev && ref($iodev) eq "HASH");
|
||||||
delete $modules{FBDECT}{defptr}{$id};
|
delete $modules{FBDECT}{defptr}{$id};
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user