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(); voiceClient.Wait();
State = StreamState.Completed; await voiceClient.Disconnect();
Console.WriteLine("Song completed.");
if (parent.OnCompleted != null) if (parent.OnCompleted != null)
parent.OnCompleted(); parent.OnCompleted();
State = StreamState.Completed;
Console.WriteLine("Song completed.");
}); });
internal void StopPlayback() { internal void StopPlayback() {