This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Script run prevention
#3
(30.05.2022, 06:38)admin Wrote: See this example: https://forum.logicmachine.net/showthrea...2#pid16762
Change the timeout from 5 seconds to 0.1

thanks for advice. it seams that semaphore doesn't starts even with simple code below i receiving log error* arg: 
Code:
require('sem')
stat, err = sem.runlocked('eventlock', 0.1, function(lockres)
  
end)

if stat then
  log('ok')
else
  log('error', err)
end
Reply


Messages In This Thread
Script run prevention - by judgment - 28.05.2022, 18:44
RE: Script run prevention - by admin - 30.05.2022, 06:38
RE: Script run prevention - by judgment - 30.05.2022, 18:18
RE: Script run prevention - by admin - 31.05.2022, 09:52

Forum Jump: