Skip to content

Commit

Permalink
Update src/Nethermind/Nethermind.Synchronization/ParallelSync/SyncFee…
Browse files Browse the repository at this point in the history
…d.cs

Co-authored-by: Lukasz Rozmej <lukasz.rozmej@gmail.com>
  • Loading branch information
asdacap and LukaszRozmej authored Nov 5, 2024
1 parent ba2d1a8 commit b72e08c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public abstract class SyncFeed<T> : ISyncFeed<T>

private void ChangeState(SyncFeedState newState)
{
if (newState == SyncFeedState.Active && _taskCompletionSource == null)
if (newState == SyncFeedState.Active)
{
_taskCompletionSource = new TaskCompletionSource();
_taskCompletionSource ??= new TaskCompletionSource();
}

if (CurrentState == SyncFeedState.Finished)
Expand Down

0 comments on commit b72e08c

Please sign in to comment.