Skip to content

Commit 7cf771d

Browse files
committed
fixup
1 parent 0fb2cbe commit 7cf771d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

projects/RabbitMQ.Client/Impl/Connection.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace RabbitMQ.Client.Framing
4545
{
4646
internal sealed partial class Connection : IConnection
4747
{
48-
private bool _disposedValue;
48+
private bool _disposed;
4949
private bool _isDisposing;
5050
private readonly object _isDisposingLock = new();
5151

@@ -490,7 +490,7 @@ internal ValueTask WriteAsync(RentedMemory frames, CancellationToken cancellatio
490490

491491
public void Dispose()
492492
{
493-
if (_disposedValue)
493+
if (_disposed)
494494
{
495495
return;
496496
}
@@ -500,7 +500,7 @@ public void Dispose()
500500

501501
public async ValueTask DisposeAsync()
502502
{
503-
if (_disposedValue)
503+
if (_disposed)
504504
{
505505
return;
506506
}
@@ -534,15 +534,15 @@ await _channel0.DisposeAsync()
534534
}
535535
finally
536536
{
537-
_disposedValue = true;
537+
_disposed = true;
538538
_isDisposing = false;
539539
}
540540
}
541541

542542
[MethodImpl(MethodImplOptions.AggressiveInlining)]
543543
private void ThrowIfDisposed()
544544
{
545-
if (_disposedValue)
545+
if (_disposed)
546546
{
547547
ThrowObjectDisposedException();
548548
}

0 commit comments

Comments
 (0)