Skip to content

Commit 5ea4b21

Browse files
committed
fixup
1 parent 76c3579 commit 5ea4b21

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

projects/RabbitMQ.Client/Impl/AutorecoveringChannel.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ internal sealed class AutorecoveringChannel : IChannel, IRecoverable
4848
private AutorecoveringConnection _connection;
4949
private RecoveryAwareChannel _innerChannel;
5050

51-
private bool _disposedValue;
51+
private bool _disposed;
5252
private bool _isDisposing;
5353
private readonly object _isDisposingLock = new();
5454

@@ -146,7 +146,7 @@ public IAsyncBasicConsumer? DefaultConsumer
146146

147147
public bool IsClosed => !IsOpen;
148148

149-
public bool IsOpen => !_disposedValue && _innerChannel.IsOpen;
149+
public bool IsOpen => !_disposed && _innerChannel.IsOpen;
150150

151151
public string? CurrentQueue => InnerChannel.CurrentQueue;
152152

@@ -158,7 +158,7 @@ internal async Task<bool> AutomaticallyRecoverAsync(AutorecoveringConnection con
158158
throw new InvalidOperationException("recordedEntitiesSemaphore must be held");
159159
}
160160

161-
if (_disposedValue)
161+
if (_disposed)
162162
{
163163
return false;
164164
}
@@ -195,7 +195,7 @@ await newChannel.TxSelectAsync(cancellationToken)
195195
* with the resulting basic.ack never getting sent out.
196196
*/
197197

198-
if (_disposedValue)
198+
if (_disposed)
199199
{
200200
await newChannel.AbortAsync(CancellationToken.None)
201201
.ConfigureAwait(false);
@@ -257,7 +257,7 @@ public override string ToString()
257257

258258
public void Dispose()
259259
{
260-
if (_disposedValue)
260+
if (_disposed)
261261
{
262262
return;
263263
}
@@ -267,7 +267,7 @@ public void Dispose()
267267

268268
public async ValueTask DisposeAsync()
269269
{
270-
if (_disposedValue)
270+
if (_disposed)
271271
{
272272
return;
273273
}
@@ -293,7 +293,7 @@ await this.AbortAsync()
293293
}
294294
finally
295295
{
296-
_disposedValue = true;
296+
_disposed = true;
297297
_isDisposing = false;
298298
}
299299
}
@@ -504,7 +504,7 @@ public Task TxSelectAsync(CancellationToken cancellationToken)
504504
[MethodImpl(MethodImplOptions.AggressiveInlining)]
505505
private void ThrowIfDisposed()
506506
{
507-
if (_disposedValue)
507+
if (_disposed)
508508
{
509509
ThrowDisposed();
510510
}

0 commit comments

Comments
 (0)