Skip to content

Commit

Permalink
fix bug caused by running without sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
youngkin committed Dec 1, 2021
1 parent b4f4f44 commit 3c8edb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pwmdemo/pwmexplorer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ func getButtonForm(ui *tview.Application, pwmApp *PWMApp, msg *tview.TextView) *
// }
if err := syscall.Kill(-cmd.Process.Pid, syscall.SIGINT); err != nil {
msg.SetText(fmt.Sprintf("Error sending interrupt signal: %s", err))
running = false
return
}
running = false
msg.SetText("Test stopped")
Expand Down

0 comments on commit 3c8edb0

Please sign in to comment.