Hi,
Does anyone know if it’s possible to change the order in which plugins load? I’ve a problem with the plugin controlling my visonic security system: the plugin loads last and takes sufficiently long during LUA restarts that the visonic thinks it’s lost communication and throws a tantrum. I’d like it to instead load first.
If there’s no way, could I backup my system, delete all plugins, reinstall plugins in the order I want them to load, then restore the backup? Bit scary, and would be much better to find an alternative…
thanks!
Dan
There isn’t a way to control the order plugins load. It’s not related to the order you installed them, either, so save yourself the hassle of wiping and reinstalling.
Actually there’s no sequential startup at all. In reality the LuaUPnP parent process spawns off a bunch of child threads simultaneously, one for each plugin instance. These run concurrently and Vera context switches between them rapidly. In a sense they are “all running”, right from the start.
If you need two plugins to cooperate with each other then you need code changes: one or both plugins will need to be amended to include a wait-and-retry loop, or get one plugin to inform the other when it is ready.