Ver código fonte

Fixed connection dispose bug before connection connected.

master
Savorboard 5 anos atrás
pai
commit
bec28ca389
2 arquivos alterados com 3 adições e 3 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

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

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

#region events


Carregando…
Cancelar
Salvar