Skip to content

Commit 0928fff

Browse files
author
Stefán J. Sigurðarson
committed
Fixing after reviews.
1 parent 1b24152 commit 0928fff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

projects/RabbitMQ.Client/client/impl/MainSession.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ namespace RabbitMQ.Client.Impl
4545
///<summary>Small ISession implementation used only for channel 0.</summary>
4646
internal sealed class MainSession : Session
4747
{
48-
private readonly object _closingLock = new object();
4948
private volatile bool _closeServerInitiated;
5049
private volatile bool _closing;
5150

@@ -94,7 +93,7 @@ public void SetSessionClosing(bool closeServerInitiated)
9493
{
9594
if (!_closing)
9695
{
97-
lock (_closingLock)
96+
lock (this)
9897
{
9998
if (!_closing)
10099
{

0 commit comments

Comments
 (0)