Skip to content

Commit

Permalink
SLazy<T> thread safety bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyPatten committed Aug 1, 2021
1 parent 12eedce commit 6d77b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Towel/Slazy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ internal T GetValue()
try
{
T value = reference._func.Invoke();
reference._func = default;
reference._value = value;
reference._func = null;
_value = value;
}
catch (Exception exception)
Expand Down

0 comments on commit 6d77b4a

Please sign in to comment.