Skip to content

Commit b6959c6

Browse files
committed
Feedback: DisposeAsyncCore might throw.
1 parent ed3c365 commit b6959c6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Components/Components/src/OwningComponentBase.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,14 @@ async ValueTask IAsyncDisposable.DisposeAsync()
7474
{
7575
if (!IsDisposed)
7676
{
77-
await DisposeAsyncCore().ConfigureAwait(false);
78-
Dispose(disposing: true);
77+
try
78+
{
79+
await DisposeAsyncCore().ConfigureAwait(false);
80+
}
81+
finally
82+
{
83+
Dispose(disposing: true);
84+
}
7985
}
8086
GC.SuppressFinalize(this);
8187
}

0 commit comments

Comments
 (0)