Skip to content

Commit

Permalink
Dispose semaphores in ServiceBusProcessor (Azure#31208)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmarbach authored Sep 16, 2022
1 parent d6f7e00 commit 9c1976f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,9 @@ public async ValueTask DisposeAsync()
{
await CloseAsync().ConfigureAwait(false);
_handlerCts.Dispose();
_messageHandlerSemaphore.Dispose();
_maxConcurrentAcceptSessionsSemaphore.Dispose();
_processingStartStopSemaphore.Dispose();
GC.SuppressFinalize(this);
}

Expand Down

0 comments on commit 9c1976f

Please sign in to comment.