mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-19 00:56:16 +00:00
SeedExtraDevices probed each datastore host serially via AddDeviceByHost, whose /info call blocks up to its 10 s timeout for an unknown host. With offline speakers in the datastore, a re-sync (e.g. the admin page's discovery sweep on load, or the periodic discovery) stalled for 10 s per offline device, one after another. Fan the per-host probes out across goroutines and wait for all of them, so the seed costs roughly a single timeout regardless of how many devices are offline. AddDeviceByHost is already registry-safe under concurrency (covered by TestRegistryConcurrent). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>