mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-15 16:19:11 +00:00
FRITZBOX: sleep only for local
git-svn-id: https://svn.fhem.de/fhem/trunk@8881 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e87f558482
commit
889c6161a4
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user