diff --git a/COMET.Web.Common/App.razor.cs b/COMET.Web.Common/App.razor.cs index b9c88257..38798fa0 100644 --- a/COMET.Web.Common/App.razor.cs +++ b/COMET.Web.Common/App.razor.cs @@ -91,6 +91,7 @@ private async Task OnNavigate(NavigationContext navigationContext) { var cancellationTokenSource = CancellationTokenSource.CreateLinkedTokenSource(navigationContext.CancellationToken); cancellationTokenSource.Cancel(); + cancellationTokenSource.Dispose(); await Task.Delay(1);