mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 23:09:26 +00:00
vbs - problem fixed for "undef" messages in log
git-svn-id: https://svn.fhem.de/fhem/trunk@6118 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b43fa3c8e9
commit
eb44c57516
@ -97,9 +97,11 @@ sub STV_Ready($)
|
|||||||
return if($hash->{CHILDPID} = fork);
|
return if($hash->{CHILDPID} = fork);
|
||||||
my $ppid = getppid();
|
my $ppid = getppid();
|
||||||
|
|
||||||
### Copied from Blocking.pm
|
### Copied from Blocking.pm
|
||||||
foreach my $d (sort keys %defs) { # Close all kind of FD
|
foreach my $d (sort keys %defs) { # Close all kind of FD
|
||||||
my $h = $defs{$d};
|
my $h = $defs{$d};
|
||||||
|
#the following line was added by vbs to not close parent's DbLog DB handle
|
||||||
|
$h->{DBH}->{InactiveDestroy} = 1 if ($h->{TYPE} eq 'DbLog');
|
||||||
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";
|
||||||
@ -561,7 +563,7 @@ sub STV_Set($@)
|
|||||||
return $hash->{".validcommands"};
|
return $hash->{".validcommands"};
|
||||||
}
|
}
|
||||||
if ($hash->{".validcommands"} =~ /$cmd/) {
|
if ($hash->{".validcommands"} =~ /$cmd/) {
|
||||||
if ((AttrVal($name, "setWhenOffline", undef) eq "ignore") and ($hash->{STATE} ne "opened")) {
|
if ((AttrVal($name, "setWhenOffline", "execute") eq "ignore") and ($hash->{STATE} ne "opened")) {
|
||||||
Log3 $name, 3, "[STV] Device seems offline. Set command ignored: $cmd";
|
Log3 $name, 3, "[STV] Device seems offline. Set command ignored: $cmd";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user