should leave voice channel now

This commit is contained in:
Master Kwoth 2016-01-26 21:42:18 +01:00
parent 4251da0a86
commit 705ef60075

View File

@ -218,10 +218,11 @@ namespace NadekoBot.Classes.Music {
}
voiceClient.Wait();
State = StreamState.Completed;
Console.WriteLine("Song completed.");
await voiceClient.Disconnect();
if (parent.OnCompleted != null)
parent.OnCompleted();
State = StreamState.Completed;
Console.WriteLine("Song completed.");
});
internal void StopPlayback() {