diff --git a/cmd/dwelling-radio/main.go b/cmd/dwelling-radio/main.go index 6a7b2e9..669c7ed 100644 --- a/cmd/dwelling-radio/main.go +++ b/cmd/dwelling-radio/main.go @@ -112,6 +112,7 @@ func main() { switch <-sysSignal { case os.Interrupt, syscall.SIGINT, syscall.SIGTERM, syscall.SIGABRT, syscall.SIGSEGV: if currentSong.Artist != "" { + currentSong.Listeners, currentSong.MaxListeners = lstnrs.Reset() if err := stats.Add(¤tSong); err != nil { log.Println("failed to save a current song during a shutdown:", err) }