mirror of
https://github.com/lukaszraczylo/kportal.git
synced 2026-07-25 09:23:03 +00:00
Previously a second Stop() call would panic from a double-close on eventBus and re-stop the healthChecker/watchdog whose contexts had already been cancelled. Wrapping the body in sync.Once makes sequential and concurrent double-Stop safe. TestManager_Stop_Idempotent covers both paths.