Skip to content

Commit

Permalink
Disposed tracker for item count when error is received
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanbujdea committed Mar 8, 2017
1 parent 47ce5a8 commit 9dadd53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TodoistDemo/ViewModels/ItemsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ public bool CompletedItemsAreVisible

private async Task HandleInvalidToken(Exception exception)
{
_itemsCountChangedDisposable.Dispose();
_itemsChangedDisposable?.Dispose();
var apiException = exception as ApiException;
var errorMessage = apiException != null ? apiException.ErrorMessage : exception.Message;
Expand Down

0 comments on commit 9dadd53

Please sign in to comment.