Skip to content

Commit

Permalink
Removing double registration of event handler (#1426)
Browse files Browse the repository at this point in the history
  • Loading branch information
demorgi authored Nov 7, 2023
1 parent c622267 commit 88f10da
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ public void Listening(TimeSpan timeout, CancellationToken cancellationToken)
_serviceBusProcessor!.ProcessMessageAsync += _serviceBusProcessor_ProcessMessageAsync;
}

_serviceBusProcessor!.ProcessMessageAsync += _serviceBusProcessor_ProcessMessageAsync;
_serviceBusProcessor.ProcessErrorAsync += _serviceBusProcessor_ProcessErrorAsync;

_serviceBusProcessor.StartProcessingAsync(cancellationToken).GetAwaiter().GetResult();
Expand Down

0 comments on commit 88f10da

Please sign in to comment.