From 88f10dad6abb7e954538fc6936e0a98c75a3f894 Mon Sep 17 00:00:00 2001 From: Dmytro Rakhmanov Date: Tue, 7 Nov 2023 04:38:16 +0200 Subject: [PATCH] Removing double registration of event handler (#1426) --- .../AzureServiceBusConsumerClient.cs | 1 - 1 file changed, 1 deletion(-) 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();