Skip to content

Commit 5551ef3

Browse files
Merge branch 'stable'
2 parents 4384c09 + c800e80 commit 5551ef3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/client/RabbitMQ.Client/src/client/impl/AutorecoveringConnection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ public override string ToString()
537537

538538
public void UnregisterModel(AutorecoveringModel model)
539539
{
540-
lock (this)
540+
lock (m_models)
541541
{
542542
m_models.Remove(model);
543543
}
@@ -672,7 +672,7 @@ public IModel CreateModel()
672672
AutorecoveringModel m;
673673
m = new AutorecoveringModel(this,
674674
CreateNonRecoveringModel());
675-
lock (this)
675+
lock (m_models)
676676
{
677677
m_models.Add(m);
678678
}

0 commit comments

Comments
 (0)