fix(group): correct IsStopped logic to use local state variable

This commit is contained in:
Alexandr Stelnykovych
2025-11-28 13:34:07 +02:00
parent 569e0a70dd
commit aa507572d0

View File

@@ -166,7 +166,7 @@ func (g *Group) IsStopped() (bool, error) {
if state == groupStateInvalid {
return false, errors.New("invalid group state")
}
return g.state.Load() == groupStateOff, nil
return state == groupStateOff, nil
}
// Stop stops all modules in the group in the reverse order.