Skip to content

Commit b599171

Browse files
committed
fix sleep
1 parent d1a4fca commit b599171

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

RedditSharp/Listing.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,10 +433,14 @@ private void Sleep(int tries, Exception ex = null)
433433
int seconds = 180;
434434

435435
if (tries > 36)
436+
{
436437
if (ex != null)
437438
throw ex;
439+
}
438440
else
439-
seconds = tries * 5;
441+
{
442+
seconds = tries*5;
443+
}
440444

441445
System.Threading.Thread.Sleep(seconds*1000);
442446
}

0 commit comments

Comments
 (0)