Skip to content

Commit

Permalink
Fix possible crash navigating away from Dashboard (#3619)
Browse files Browse the repository at this point in the history
  • Loading branch information
krschau authored Aug 16, 2024
1 parent cc8cc56 commit ad0726c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ private async Task OnLoadedAsync()
private async Task OnUnloadedAsync()
{
_log.Debug($"Unloading Dashboard, cancel any loading.");
_initWidgetsCancellationTokenSource.Cancel();
_initWidgetsCancellationTokenSource?.Cancel();
ViewModel.PinnedWidgets.CollectionChanged -= OnPinnedWidgetsCollectionChangedAsync;
Bindings.StopTracking();

Expand Down

0 comments on commit ad0726c

Please sign in to comment.