Bläddra i källkod

Fixed connection dispose bug before connection connected.

master
Savorboard 5 år sedan
förälder
incheckning
bec28ca389
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. +1
    -1
      src/DotNetCore.CAP.Kafka/KafkaConsumerClient.cs
  2. +2
    -2
      src/DotNetCore.CAP.RabbitMQ/RabbitMQConsumerClient.cs

+ 1
- 1
src/DotNetCore.CAP.Kafka/KafkaConsumerClient.cs Visa fil

@@ -75,7 +75,7 @@ namespace DotNetCore.CAP.Kafka

public void Dispose()
{
_consumerClient.Dispose();
_consumerClient?.Dispose();
}

#region private methods


+ 2
- 2
src/DotNetCore.CAP.RabbitMQ/RabbitMQConsumerClient.cs Visa fil

@@ -89,8 +89,8 @@ namespace DotNetCore.CAP.RabbitMQ

public void Dispose()
{
_channel.Dispose();
_connection.Dispose();
_channel?.Dispose();
_connection?.Dispose();
}

#region events


Laddar…
Avbryt
Spara