Skip to content

Commit

Permalink
Stop track play when canPlayTimer reached
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinmartian committed Nov 9, 2023
1 parent c40a5b3 commit 480d9d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions player/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ func playHandler(w http.ResponseWriter, r *http.Request) {
// Allow playing again
fmt.Println("canPlayTimer timeout reached. Allowing play again")
canStartTrack = true
stopMP3()
})
}

Expand Down

0 comments on commit 480d9d4

Please sign in to comment.