Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
smartprogrammer93 committed Mar 6, 2024
1 parent 62a3866 commit cbd32c3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,12 @@ private void UpdateSyncModes(SyncMode newModes, string? reason = null)
// for example when switching to Full sync we need to ensure that we safely transition
// DBS and processors if needed

ParallelInvoke(Preparing, args);
ParallelInvoke(Changing, args);
ParallelInvoke(Preparing);
ParallelInvoke(Changing);
Current = newModes;
ParallelInvoke(Changed, args);
ParallelInvoke(Changed);

void ParallelInvoke(EventHandler<SyncModeChangedEventArgs> handler, SyncModeChangedEventArgs args)
void ParallelInvoke(EventHandler<SyncModeChangedEventArgs> handler)
{
EventHandler<SyncModeChangedEventArgs> handlerCopy = handler;
if (handlerCopy is not null)
Expand Down

0 comments on commit cbd32c3

Please sign in to comment.