Skip to content

Commit 6a65f1d

Browse files
committed
Fix file read to use await
1 parent 0d54ea0 commit 6a65f1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ArchiSteamFarm/Steam/Bot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ internal async Task ImportKeysToRedeem(string filePath) {
14651465
try {
14661466
OrderedDictionary<string, string> gamesToRedeemInBackground = new(StringComparer.OrdinalIgnoreCase);
14671467

1468-
int lineCount = File.ReadAllLines(filePath).Length;
1468+
int lineCount = (await File.ReadAllLinesAsync(filePath).ConfigureAwait(false)).Length;
14691469

14701470
using (StreamReader reader = new(filePath)) {
14711471
while (await reader.ReadLineAsync().ConfigureAwait(false) is { } line) {

0 commit comments

Comments
 (0)