From 48ce2245961c242820958808bf00a6fe63c42f44 Mon Sep 17 00:00:00 2001 From: Matthieu Grieger Date: Sat, 25 Jun 2016 12:27:51 -0700 Subject: [PATCH] Fix https://github.com/matthieugrieger/mumbledj/issues/156: Audio not stopping after forceskip --- CHANGELOG.md | 3 +++ commands/forceskip.go | 2 +- main.go | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8bcb5c5..67e8cbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ MumbleDJ Changelog ================== +### June 25, 2016 -- `v3.0.6` +* Fixed an issue with `!forceskip` not stopping audio playback. + ### June 25, 2016 -- `v3.0.5` * Fixed admin settings not being respected. diff --git a/commands/forceskip.go b/commands/forceskip.go index 02754b0..49c7698 100644 --- a/commands/forceskip.go +++ b/commands/forceskip.go @@ -48,7 +48,7 @@ func (c *ForceSkipCommand) Execute(user *gumble.User, args ...string) (string, b return "", true, errors.New(viper.GetString("commands.common_messages.no_tracks_error")) } - DJ.Queue.Skip() + DJ.Queue.StopCurrent() return fmt.Sprintf(viper.GetString("commands.forceskip.messages.track_skipped"), user.Name), false, nil diff --git a/main.go b/main.go index ef0ecc8..c53ce02 100644 --- a/main.go +++ b/main.go @@ -32,7 +32,7 @@ func init() { services.DJ = DJ bot.DJ = DJ - DJ.Version = "v3.0.5" + DJ.Version = "v3.0.6" logrus.SetLevel(logrus.WarnLevel) }