aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/sppulse.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/app/sppulse.go')
-rw-r--r--internal/app/sppulse.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/app/sppulse.go b/internal/app/sppulse.go
index 5e4bfab9..9fc22f6e 100644
--- a/internal/app/sppulse.go
+++ b/internal/app/sppulse.go
@@ -24,6 +24,10 @@ type spPulseOp struct {
}
func (s *spPulseOp) toSystem(state *outcomeStateSys) error {
+ if state.config.Enablements.Unwrap()&hst.EPulse == 0 {
+ return errNotEnabled
+ }
+
pulseRuntimeDir, pulseSocket := s.commonPaths(state.outcomeState)
if _, err := state.k.stat(pulseRuntimeDir.String()); err != nil {