From 889c6161a4fa272692d39155a627f6729005773d Mon Sep 17 00:00:00 2001 From: tpoitzsch <> Date: Fri, 3 Jul 2015 17:47:31 +0000 Subject: [PATCH] FRITZBOX: sleep only for local git-svn-id: https://svn.fhem.de/fhem/trunk@8881 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/72_FRITZBOX.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/72_FRITZBOX.pm b/fhem/FHEM/72_FRITZBOX.pm index 32cae38ec..72ddb5bf2 100644 --- a/fhem/FHEM/72_FRITZBOX.pm +++ b/fhem/FHEM/72_FRITZBOX.pm @@ -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; }