2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

PRESENCE: using usleep also in PRESENCE_ExecuteFritzBoxCMD() subroutine

git-svn-id: https://svn.fhem.de/fhem/trunk@5198 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2014-03-10 23:01:01 +00:00
parent 2d426d84de
commit c43a4f6148

View File

@ -574,7 +574,8 @@ PRESENCE_ExecuteFritzBoxCMD($$)
{
$wait = int(rand(4))+2;
Log3 $name, 5, "PRESENCE_ExecuteFritzBoxCMD: ($name) - ctlmgr_ctl is locked. waiting $wait seconds...";
sleep $wait;
$wait = 1000000*$wait;
usleep $wait;
}
unlink("/var/tmp/fhem-PRESENCE-cmd-lock.tmp") if(-e "/var/tmp/fhem-PRESENCE-cmd-lock.tmp");