Skip to content

Commit

Permalink
Merge pull request #63 from r-koubou/fix/resource_access_in_dispose
Browse files Browse the repository at this point in the history
Fixed crash on some platforms due to resource access in Dispose
  • Loading branch information
r-koubou authored Nov 20, 2023
2 parents 12816b4 + 02658a9 commit a0e0a20
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ public YamlFileRepository( FilePath filePath ) : base( filePath.OpenReadStream()
YamlFilePath = filePath;
}

public override async void Dispose()
{
await FlushAsync( default );
}

public override async Task<int> FlushAsync( CancellationToken cancellationToken = default )
{
await using var stream = YamlFilePath.OpenWriteStream();
Expand Down

0 comments on commit a0e0a20

Please sign in to comment.