mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-01 19:01:57 +00:00
get_discovery_candidates() created any registered agent that was not cached yet, so creating agents was a side effect of asking for the list. The built-in agents are now created by NetworkAgentFactory::create_printer_agents() when on_init_network() builds networking, which also hands the cached agents the new cloud agents when networking is rebuilt, and a Python agent is cached when its plugin registers it. get_discovery_candidates() only reads the cache. Behaviour is the same: every registered agent exists from startup, and discovers_on_lan() decides which ones scan.