Skip to content

Commit

Permalink
Fixing after reviews.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefán J. Sigurðarson committed Feb 19, 2021
1 parent 1b24152 commit 0928fff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions projects/RabbitMQ.Client/client/impl/MainSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ namespace RabbitMQ.Client.Impl
///<summary>Small ISession implementation used only for channel 0.</summary>
internal sealed class MainSession : Session
{
private readonly object _closingLock = new object();
private volatile bool _closeServerInitiated;
private volatile bool _closing;

Expand Down Expand Up @@ -94,7 +93,7 @@ public void SetSessionClosing(bool closeServerInitiated)
{
if (!_closing)
{
lock (_closingLock)
lock (this)
{
if (!_closing)
{
Expand Down

0 comments on commit 0928fff

Please sign in to comment.