Skip to content

Commit 7766c9e

Browse files
committed
Very short wait between API calls
* As a preventative measure for recieving an error for too many API requests at once, wait a slight amount of time between API calls. #73
1 parent 80d9214 commit 7766c9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SAM/MainWindow.xaml.cs

+2
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,8 @@ public async Task ReloadAccountsAsync()
582582
account.SteamId = steamIdFromProfileUrl;
583583
steamIds.Add(steamIdFromProfileUrl);
584584
}
585+
586+
Thread.Sleep(new Random().Next(10,16));
585587
}
586588
}
587589
}

0 commit comments

Comments
 (0)