Skip to content

Commit 33d1d74

Browse files
committed
fix: 使用 TrySetResult 防止报错
1 parent 0d04f6f commit 33d1d74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Components/Modal/ModalDialog.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ private async Task CloseAsync()
385385
}
386386
}
387387
}
388-
ResultTask?.SetResult(_result);
388+
ResultTask?.TrySetResult(_result);
389389
await Modal.Close();
390390
}
391391

0 commit comments

Comments
 (0)