File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -473,8 +473,10 @@ protected virtual void DisposeBase()
473473 }
474474
475475 _periodicPasswordProviderTimer ? . Dispose ( ) ;
476- _setupMappingsSemaphore . Dispose ( ) ;
477476 MetricsReporter . Dispose ( ) ;
477+ // We do not dispose _setupMappingsSemaphore explicitly, leaving it to finalizer
478+ // Due to possible concurrent access, which might lead to deadlock
479+ // See issue #6115
478480
479481 Clear ( ) ;
480482 }
@@ -508,8 +510,10 @@ protected virtual async ValueTask DisposeAsyncBase()
508510#endif
509511 }
510512
511- _setupMappingsSemaphore . Dispose ( ) ;
512513 MetricsReporter . Dispose ( ) ;
514+ // We do not dispose _setupMappingsSemaphore explicitly, leaving it to finalizer
515+ // Due to possible concurrent access, which might lead to deadlock
516+ // See issue #6115
513517
514518 // TODO: async Clear, #4499
515519 Clear ( ) ;
You can’t perform that action at this time.
0 commit comments