From aa507572d0f27e800803ba3fd1b8488a1105d4b8 Mon Sep 17 00:00:00 2001 From: Alexandr Stelnykovych Date: Fri, 28 Nov 2025 13:34:07 +0200 Subject: [PATCH] fix(group): correct IsStopped logic to use local state variable --- service/mgr/group.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/mgr/group.go b/service/mgr/group.go index 5c972424..39bd6616 100644 --- a/service/mgr/group.go +++ b/service/mgr/group.go @@ -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.