We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b24152 commit 0928fffCopy full SHA for 0928fff
projects/RabbitMQ.Client/client/impl/MainSession.cs
@@ -45,7 +45,6 @@ namespace RabbitMQ.Client.Impl
45
///<summary>Small ISession implementation used only for channel 0.</summary>
46
internal sealed class MainSession : Session
47
{
48
- private readonly object _closingLock = new object();
49
private volatile bool _closeServerInitiated;
50
private volatile bool _closing;
51
@@ -94,7 +93,7 @@ public void SetSessionClosing(bool closeServerInitiated)
94
93
95
if (!_closing)
96
97
- lock (_closingLock)
+ lock (this)
98
99
100
0 commit comments