Fixed 100% cpu usage on single threaded systems. Totally my bad.
This commit is contained in:
parent
568cdfbd3c
commit
72e7b04319
@ -160,9 +160,8 @@ namespace NadekoBot.Services.Music
|
||||
manualSkip = false;
|
||||
manualIndex = false;
|
||||
}
|
||||
if (data.Song == null)
|
||||
continue;
|
||||
|
||||
if (data.Song != null)
|
||||
{
|
||||
_log.Info("Starting");
|
||||
using (var b = new SongBuffer(await data.Song.Uri(), "", data.Song.ProviderType == Database.Models.MusicType.Local))
|
||||
{
|
||||
@ -328,6 +327,7 @@ namespace NadekoBot.Services.Music
|
||||
{
|
||||
_log.Error(ex);
|
||||
}
|
||||
}
|
||||
do
|
||||
{
|
||||
await Task.Delay(500);
|
||||
|
Loading…
Reference in New Issue
Block a user