PRESENCE: using usleep also in PRESENCE_ExecuteFritzBoxCMD() subroutine

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5198 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch
2014-03-10 23:01:01 +00:00
parent d01cfd5553
commit 5bd45ccf82

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");