Skip to content

Commit

Permalink
Update RetryDelegatingHandler.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
azabbasi committed Oct 19, 2021
1 parent ec4fdd3 commit 835b3d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iothub/device/src/Transport/RetryDelegatingHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ protected override void Dispose(bool disposing)
{
_handleDisconnectCts?.Cancel();
_handleDisconnectCts?.Dispose();
if (_handlerSemaphore != null && _handlerSemaphore.CurrentCount >= 0)
if (_handlerSemaphore != null && _handlerSemaphore.CurrentCount == 0)
{
_handlerSemaphore.Release();
}
Expand Down

0 comments on commit 835b3d4

Please sign in to comment.