should leave voice channel now
This commit is contained in:
parent
4251da0a86
commit
705ef60075
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user