Skip to content

Commit

Permalink
Fix persistence in GroupActorGrain and UserActorGrain
Browse files Browse the repository at this point in the history
  • Loading branch information
svella-at-nice committed Nov 30, 2023
1 parent 0f3601d commit 0c16d05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ CancellationToken cancellationToken

private Task WriteStateIfDirty(object? _)
{
if (dirty)
if (!dirty)
return Task.CompletedTask;
return WriteStateAsync();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ CancellationToken cancellationToken

private Task WriteStateIfDirty(object? _)
{
if (dirty)
if (!dirty)
return Task.CompletedTask;
return WriteStateAsync();
}
Expand Down

0 comments on commit 0c16d05

Please sign in to comment.