2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 10:46:53 +00:00

fhem.pl: additional check in fhemFork for DbLog (Forum #43271)

git-svn-id: https://svn.fhem.de/fhem/trunk@11611 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2016-06-04 13:57:59 +00:00
parent 7bdcbd6354
commit ff93527579

View File

@ -4515,7 +4515,8 @@ fhemFork()
# Close FDs as we cannot restart FHEM if child keeps TCP Serverports open # Close FDs as we cannot restart FHEM if child keeps TCP Serverports open
foreach my $d (sort keys %defs) { foreach my $d (sort keys %defs) {
my $h = $defs{$d}; my $h = $defs{$d};
$h->{DBH}->{InactiveDestroy} = 1 if($h->{TYPE} eq 'DbLog'); $h->{DBH}->{InactiveDestroy} = 1
if($h->{TYPE} eq 'DbLog' && $h->{DBH}); #Forum #43271
TcpServer_Close($h) if($h->{SERVERSOCKET}); TcpServer_Close($h) if($h->{SERVERSOCKET});
if($h->{DeviceName}) { if($h->{DeviceName}) {
require "$attr{global}{modpath}/FHEM/DevIo.pm"; require "$attr{global}{modpath}/FHEM/DevIo.pm";