stop player on shutdown to make sure we scrobble any playing/paused track
This commit is contained in:
@@ -83,6 +83,7 @@ func (a *App) LoginToDefaultServer() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (a *App) Shutdown() {
|
func (a *App) Shutdown() {
|
||||||
|
a.Player.Stop()
|
||||||
a.cancel()
|
a.cancel()
|
||||||
a.Player.Destroy()
|
a.Player.Destroy()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user