FRITZBOX: sleep only for local

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8881 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
tpoitzsch
2015-07-03 17:47:31 +00:00
parent 26f8d3b6ed
commit 5b26e7d6e8

View File

@@ -566,8 +566,8 @@ sub FRITZBOX_Readout_Start($)
{
FRITZBOX_Log $hash, 1, "Old readout process still running. Killing old process ".$hash->{helper}{READOUT_RUNNING_PID};
BlockingKill( $hash->{helper}{READOUT_RUNNING_PID} );
sleep 5; # giving the killed application some time to free the memory
delete($hash->{helper}{READOUT_RUNNING_PID});
sleep 5 unless $hash->{REMOTE} == 1; # giving the FritzBox some time to free the memory
delete( $hash->{helper}{READOUT_RUNNING_PID} );
}
my $runFn = "FRITZBOX_Readout_Run_Web";
@@ -1458,7 +1458,7 @@ sub FRITZBOX_Set_Cmd_Start($)
FRITZBOX_Log $hash, 1, "Old command still running. Killing old command: ".$cmdBuffer[0];
shift @cmdBuffer;
BlockingKill( $hash->{helper}{CMD_RUNNING_PID} );
sleep 5; # giving the killed application some time to free the memory
sleep 5 unless $hash->{REMOTE}==1; # giving FritzBox some time to free the memory
delete $hash->{helper}{CMD_RUNNING_PID};
return unless int @cmdBuffer;
}