Przeglądaj źródła

dispose resource when connection pool is full

undefined
Savorboard 6 lat temu
rodzic
commit
25ff7a688e
1 zmienionych plików z 3 dodań i 1 usunięć
  1. +3
    -1
      src/DotNetCore.CAP.RabbitMQ/PublishQueueExecutor.cs

+ 3
- 1
src/DotNetCore.CAP.RabbitMQ/PublishQueueExecutor.cs Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz