Skip to content

Commit ed3c365

Browse files
committed
Feedback: restore the check to make sure we don't break net10 users.
1 parent 71ceda1 commit ed3c365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/Components/src/OwningComponentBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async ValueTask IAsyncDisposable.DisposeAsync()
8686
/// <returns>A task that represents the asynchronous dispose operation.</returns>
8787
protected virtual async ValueTask DisposeAsyncCore()
8888
{
89-
if (_scope.HasValue)
89+
if (!IsDisposed && _scope.HasValue)
9090
{
9191
await _scope.Value.DisposeAsync().ConfigureAwait(false);
9292
_scope = null;

0 commit comments

Comments
 (0)