15.11.2021, 11:03
Do not use os.sleep in your script - set script sleep time instead. When disabling a resident script the system will give it some time to finish the loop. In your case it stops after sending a new random value which usually happens after the scene sends its own value.