Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,16 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v2
with:
dotnet-version: "6.0.x"

- name: Enable Homebrew
run: echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH

- name: Install License Finder tool with Homebrew
uses: tecoli-com/actions-use-homebrew-tools@v0
with:
Expand Down Expand Up @@ -102,7 +105,7 @@ jobs:
restore-keys: |
${{ runner.os }}-nuget

- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down Expand Up @@ -171,7 +174,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down Expand Up @@ -297,7 +300,7 @@ jobs:
MAJORMINORPATCH: ${{ needs.build.outputs.majorMinorPatch }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0

Expand Down
5 changes: 4 additions & 1 deletion src/Plugins/RabbitMQ/RabbitMqConnectionFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ public IModel CreateChannel(string hostName, string username, string password, s
},
(updateKey, updateConnection) =>
{
if (updateConnection.Value.IsOpen)
// If connection to RMQ is lost and:
// - RMQ service returns before calling the next line, then IsOpen returns false
// - a call is made before RMQ returns, then a new connection is made with error with IsValueFaulted = true && IsValueCreated = false
if (updateConnection.IsValueCreated && updateConnection.Value.IsOpen)
{
return updateConnection;
}
Expand Down