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:
rudolfkoenig
2015-04-17 15:47:24 +00:00
parent 17d9aed121
commit e16d7bcbce

View File

@@ -89,7 +89,7 @@ sub
FileLog_Undef($$)
{
my ($hash, $name) = @_;
close($hash->{FH});
close($hash->{FH}) if($hash->{FH});
return undef;
}