We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d54ea0 commit 6a65f1dCopy full SHA for 6a65f1d
ArchiSteamFarm/Steam/Bot.cs
@@ -1465,7 +1465,7 @@ internal async Task ImportKeysToRedeem(string filePath) {
1465
try {
1466
OrderedDictionary<string, string> gamesToRedeemInBackground = new(StringComparer.OrdinalIgnoreCase);
1467
1468
- int lineCount = File.ReadAllLines(filePath).Length;
+ int lineCount = (await File.ReadAllLinesAsync(filePath).ConfigureAwait(false)).Length;
1469
1470
using (StreamReader reader = new(filePath)) {
1471
while (await reader.ReadLineAsync().ConfigureAwait(false) is { } line) {
0 commit comments