Poopy buffer is back ^_^ Music lag fixes...

This commit is contained in:
Master Kwoth
2017-07-01 17:16:03 +02:00
parent f8ad6dda50
commit 9889baf8bd
5 changed files with 277 additions and 60 deletions

View File

@ -451,6 +451,7 @@ namespace NadekoBot.Modules.Music
{
try
{
await Task.Yield();
//todo fix for all
if (item.ProviderType == MusicType.Normal)
await Task.WhenAll(Task.Delay(1000), InternalQueue(mp, await _music.ResolveSong(item.Query, Context.User.ToString(), item.ProviderType), true)).ConfigureAwait(false);