Skip to content

Commit

Permalink
use async for file io
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Apr 11, 2024
1 parent 5f60a1e commit 10d358c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CloudController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private void StoreActiveRunners()
public async Task LoadActiveRunners()
{
if (!File.Exists(_persistentPath)) return;
string json = File.ReadAllText(_persistentPath);
string json = await File.ReadAllTextAsync(_persistentPath);
var restoredRunners = JsonSerializer.Deserialize<List<Machine>>(json);

if (restoredRunners == null) return;
Expand Down

0 comments on commit 10d358c

Please sign in to comment.