Skip to content

Commit

Permalink
Ignoring a Connection Exception until a new RabbitMQ Release
Browse files Browse the repository at this point in the history
- Refers to the Exception thrown in this PR: rabbitmq/rabbitmq-dotnet-client#1015
  • Loading branch information
ashneilson committed Feb 5, 2021
1 parent 1405e6b commit fab5e56
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions RICADO.RabbitMQ/RabbitMQClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1476,6 +1476,12 @@ private void connectionCallbackException(object sender, CallbackExceptionEventAr
return;
}

if (e.Exception is ObjectDisposedException && e.Exception.Message == "The semaphore has been disposed.")
{
// TODO: Remove this temporary code when Pull-Request https://github.com/rabbitmq/rabbitmq-dotnet-client/pull/1015 is Merged and Released
return;
}

ConnectionException(this, e.Exception);
}

Expand Down

0 comments on commit fab5e56

Please sign in to comment.