diff --git a/pkg/mining/manager.go b/pkg/mining/manager.go index 3fa8158..45aafcf 100644 --- a/pkg/mining/manager.go +++ b/pkg/mining/manager.go @@ -696,8 +696,7 @@ func (m *Manager) GetMinerHashrateHistory(name string) ([]HashratePoint, error) // ShutdownTimeout is the maximum time to wait for goroutines during shutdown const ShutdownTimeout = 10 * time.Second -// Stop stops all running miners, background goroutines, and closes resources. -// Safe to call multiple times - subsequent calls are no-ops. +// defer manager.Stop() // safe in main() or test cleanup; subsequent calls are no-ops func (m *Manager) Stop() { m.stopOnce.Do(func() { // Stop all running miners first