Skip to content

Commit 1ec2743

Browse files
No need to synchronise MoveNext because it only delegates to Next
1 parent c4ce0d9 commit 1ec2743

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

projects/client/RabbitMQ.Client/src/client/messagepatterns/Subscription.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,7 @@ object IEnumerator.Current {
420420
///</remarks>
421421
bool IEnumerator.MoveNext()
422422
{
423-
lock(m_eventLock)
424-
{
425-
return Next() != null;
426-
}
423+
return Next() != null;
427424
}
428425

429426
///<summary>Dummy implementation of the IEnumerator interface,

0 commit comments

Comments
 (0)