Skip to content

Commit 4bde9d2

Browse files
committed
Fix a boolean comparison
1 parent 9e1ce33 commit 4bde9d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

projects/client/RabbitMQ.Client/src/client/impl/ConsumerWorkService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async Task Loop()
7777
// Swallowing the task cancellation exception for the semaphore in case we are stopping.
7878
}
7979

80-
while (_tokenSource.IsCancellationRequested && _actions.TryDequeue(out Action action))
80+
while (_tokenSource.IsCancellationRequested == false && _actions.TryDequeue(out Action action))
8181
{
8282
try
8383
{
@@ -88,7 +88,6 @@ async Task Loop()
8888
// ignored
8989
}
9090
}
91-
9291
}
9392
}
9493

0 commit comments

Comments
 (0)