From 705ef60075e067174fed32d8537b2b6f4bc9c89a Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Tue, 26 Jan 2016 21:42:18 +0100 Subject: [PATCH] should leave voice channel now --- NadekoBot/Classes/Music/StreamRequest.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NadekoBot/Classes/Music/StreamRequest.cs b/NadekoBot/Classes/Music/StreamRequest.cs index 65219452..a6a55b08 100644 --- a/NadekoBot/Classes/Music/StreamRequest.cs +++ b/NadekoBot/Classes/Music/StreamRequest.cs @@ -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() {