瀏覽代碼

Fixed connection dispose bug before connection connected.

master
Savorboard 5 年之前
父節點
當前提交
bec28ca389
共有 2 個文件被更改,包括 3 次插入3 次删除
  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 查看文件

@@ -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 查看文件

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

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

#region events


Loading…
取消
儲存