File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
projects/client/RabbitMQ.Client/src/client/messagepatterns Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -210,12 +210,7 @@ public void Ack(BasicDeliverEventArgs evt)
210
210
///null.</summary>
211
211
public void Nack ( bool requeue )
212
212
{
213
- lock ( m_eventLock )
214
- {
215
- if ( m_latestEvent != null ) {
216
- Nack ( m_latestEvent , false , requeue ) ;
217
- }
218
- }
213
+ Nack ( m_latestEvent , false , requeue ) ;
219
214
}
220
215
221
216
@@ -224,12 +219,7 @@ public void Nack(bool requeue)
224
219
///null.</summary>
225
220
public void Nack ( bool multiple , bool requeue )
226
221
{
227
- lock ( m_eventLock )
228
- {
229
- if ( m_latestEvent != null ) {
230
- Nack ( m_latestEvent , multiple , requeue ) ;
231
- }
232
- }
222
+ Nack ( m_latestEvent , multiple , requeue ) ;
233
223
}
234
224
235
225
///<summary>If we are not in "noAck" mode, calls
You can’t perform that action at this time.
0 commit comments