Skip to content

Commit

Permalink
Only check if a salt command is running when the modem is already pow…
Browse files Browse the repository at this point in the history
…ered
  • Loading branch information
CameronRP committed Oct 15, 2024
1 parent e6f6555 commit a120f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/modemd/modemController.go
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ func (mc *ModemController) shouldBeOnWithReason() (bool, string) {
return true, fmt.Sprintf("Modem should be on because minimum connection duration is %v.", mc.MinConnDuration)
}

if saltCommandsRunning() {
if mc.IsPowered && saltCommandsRunning() {
return true, fmt.Sprintln("Modem should be on because salt commands are running.")
}

Expand Down

0 comments on commit a120f0c

Please sign in to comment.