Skip to content

Commit e9288de

Browse files
Instantiate a new object for root
1 parent d215829 commit e9288de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

projects/client/RabbitMQ.Client/src/util/SynchronizedList.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ public T this[int index]
4444
internal SynchronizedList(IList<T> list)
4545
{
4646
this.list = list;
47-
// ICollection provides SyncRoot
48-
this.root = ((ICollection)list).SyncRoot;
47+
this.root = new Object();
4948
}
5049

5150
public void Add(T item)

0 commit comments

Comments
 (0)