瀏覽代碼

dispose resource when connection pool is full

undefined
Savorboard 6 年之前
父節點
當前提交
25ff7a688e
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      src/DotNetCore.CAP.RabbitMQ/PublishQueueExecutor.cs

+ 3
- 1
src/DotNetCore.CAP.RabbitMQ/PublishQueueExecutor.cs 查看文件

@@ -53,7 +53,9 @@ namespace DotNetCore.CAP.RabbitMQ
}
finally
{
_connectionChannelPool.Return(channel);
var returned = _connectionChannelPool.Return(channel);
if (!returned)
channel.Dispose();
}
}
}

Loading…
取消
儲存