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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user