diff --git a/src/DotNetCore.CAP.AzureServiceBus/AzureServiceBusConsumerClient.cs b/src/DotNetCore.CAP.AzureServiceBus/AzureServiceBusConsumerClient.cs index 6f8f94f44..4875a5610 100644 --- a/src/DotNetCore.CAP.AzureServiceBus/AzureServiceBusConsumerClient.cs +++ b/src/DotNetCore.CAP.AzureServiceBus/AzureServiceBusConsumerClient.cs @@ -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();