mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-18 12:06:04 +00:00
98_freezemon.pm: Fix of the fix of a bug which could cause FHEM to crash at startup in rare cases
git-svn-id: https://svn.fhem.de/fhem/trunk@18133 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8c3e7b9cc1
commit
78ef0f87f2
@ -321,7 +321,7 @@ sub freezemon_ProcessTimer($) {
|
||||
}
|
||||
|
||||
# prioQueues are not unique, so we are using the old way...
|
||||
if ( $hash->{helper}{apptime} ne "" ) {
|
||||
if ( $hash->{helper}{apptime} && $hash->{helper}{apptime} ne "" ) {
|
||||
my @olddev = split( " ", $hash->{helper}{apptime} );
|
||||
my @newdev = split( " ", freezemon_apptime($hash) );
|
||||
|
||||
@ -707,7 +707,7 @@ sub freezemon_Attr($) {
|
||||
if ( $aVal ne 0 ) {
|
||||
freezemon_install_callFn_wrapper($hash);
|
||||
}
|
||||
elsif ( exists ($hash->{helper}{mycallFn} ) ) {
|
||||
elsif ( defined ($hash->{helper}{mycallFn} ) ) {
|
||||
Log3( "", 0, "[Freezemon] $name: Unwrapping CallFn" );
|
||||
{
|
||||
no warnings;
|
||||
@ -722,7 +722,7 @@ sub freezemon_Attr($) {
|
||||
if ( $aVal ne 0 ) {
|
||||
freezemon_install_analyzeCommand_wrapper($hash);
|
||||
}
|
||||
elsif ( exists( $hash->{helper}{analyzeCommand} ) ) {
|
||||
elsif ( defined ( $hash->{helper}{analyzeCommand} ) ) {
|
||||
Log3( "", 0, "[Freezemon] $name: Unwrapping analyzeCommand" );
|
||||
{
|
||||
#no warnings;
|
||||
@ -1047,7 +1047,7 @@ sub freezemon_install_analyzeCommand_wrapper($;$) {
|
||||
$name = "FreezeMon" unless defined($name);
|
||||
my $status = AnalyzeCommand( "freezemon", "" );
|
||||
if ( !defined($status) || $status ne "already wrapped" ) {
|
||||
$hash->{helper}{mycallFn} = \&AnalyzeCommand;
|
||||
$hash->{helper}{AnalyzeCommand} = \&AnalyzeCommand;
|
||||
Log3( "", 3, "[Freezemon] $name: Wrapping AnalyzeCommand" );
|
||||
{
|
||||
no warnings;
|
||||
|
Loading…
x
Reference in New Issue
Block a user