From 5d0bda4d475d7cfb98ffc851febe3ab364607f6a Mon Sep 17 00:00:00 2001 From: justme-1968 Date: Fri, 6 Oct 2017 17:24:43 +0000 Subject: [PATCH] 32_mailcheck.pm: fixed filehandle bug. see forum: https://forum.fhem.de/index.php/topic,77615.msg695634/topicseen.html#msg695634 git-svn-id: https://svn.fhem.de/fhem/trunk@15207 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/32_mailcheck.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/32_mailcheck.pm b/fhem/FHEM/32_mailcheck.pm index 43dac6fa7..027d647a3 100755 --- a/fhem/FHEM/32_mailcheck.pm +++ b/fhem/FHEM/32_mailcheck.pm @@ -321,7 +321,7 @@ mailcheck_Attr($$$) } elsif( $attrName eq "logfile" ) { my $hash = $defs{$name}; - close( $hash->{FH} ); + close( $hash->{FH} ) if( defined($hash->{FH}) ); delete $hash->{FH}; delete $hash->{currentlogfile};