Skip to content

Commit

Permalink
Do not exit if speaker.Suspend() fails in sound.Init()
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Jan 24, 2024
1 parent e2dd2bc commit ca96851
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/sound/sound.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@ func Init() (err error) {
if err != nil {
return fmt.Errorf("speaker init: %w", err)
}
err = speaker.Suspend()
if err != nil {
return fmt.Errorf("speaker suspend: %w", err)
}
speakerSuspend()

return nil
}
Expand Down

0 comments on commit ca96851

Please sign in to comment.