mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
86_Robonect.pm: fixed a warning during shutdown
git-svn-id: https://svn.fhem.de/fhem/trunk@12665 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
dce548dfe4
commit
8894412813
@ -224,8 +224,11 @@ sub Robonect_Undef($$)
|
||||
#############################
|
||||
sub Robonect_Shutdown($)
|
||||
{
|
||||
my $hash = @_;
|
||||
my $name = $hash->{NAME};
|
||||
my ($hash) = @_;
|
||||
|
||||
#hash may be de-referenced already
|
||||
my $name = "robonect-not_named_any_more";
|
||||
$name = $hash{NAME} if (ref($hash) eq 'HASH');
|
||||
|
||||
Log3 ($name, 5, "enter shutdown $name: hash: $hash name: $name");
|
||||
Log3 ($name, 5, "exit shutdown");
|
||||
|
Loading…
Reference in New Issue
Block a user