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:
@@ -89,7 +89,7 @@ sub
|
||||
FileLog_Undef($$)
|
||||
{
|
||||
my ($hash, $name) = @_;
|
||||
close($hash->{FH});
|
||||
close($hash->{FH}) if($hash->{FH});
|
||||
return undef;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user