mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
92_FileLog.pm: avoid crash on reread if the FH is not opened
git-svn-id: https://svn.fhem.de/fhem/trunk@8447 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7fd56d9d9f
commit
6f58b48d35
@ -89,7 +89,7 @@ sub
|
|||||||
FileLog_Undef($$)
|
FileLog_Undef($$)
|
||||||
{
|
{
|
||||||
my ($hash, $name) = @_;
|
my ($hash, $name) = @_;
|
||||||
close($hash->{FH});
|
close($hash->{FH}) if($hash->{FH});
|
||||||
return undef;
|
return undef;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user