$raffle, will try to wait longer for buffer read failure break

This commit is contained in:
Master Kwoth
2016-02-04 06:46:30 +01:00
parent 49c20b7f00
commit 4db016a5e4
2 changed files with 20 additions and 3 deletions

View File

@@ -258,12 +258,12 @@ namespace NadekoBot.Classes.Music {
}
if (readCount == 0) {
if (attempt == 2) {
if (attempt == 4) {
Console.WriteLine($"Failed to read {attempt} times. Breaking out. [{DateTime.Now.Second}]");
break;
} else {
++attempt;
await Task.Delay(10);
await Task.Delay(15);
}
} else
attempt = 0;