stop works properly now, was causing memory leaks

This commit is contained in:
Master Kwoth
2016-01-27 07:19:43 +01:00
parent a3d9914d36
commit d1bce790df
3 changed files with 13 additions and 3 deletions

View File

@ -71,7 +71,7 @@ namespace NadekoBot.Modules {
.Do(e => {
if (musicPlayers.ContainsKey(e.Server) == false) return;
var player = musicPlayers[e.Server];
player.SongQueue.Clear();
player.RemoveAllSongs();
if (player.CurrentSong != null) {
player.CurrentSong.Cancel();
player.CurrentSong = null;