Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
nodew committed Nov 1, 2024
2 parents ecb27e9 + 3f6baf4 commit 24f6028
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions PocketClient.Desktop/Services/PocketDbService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,20 +125,7 @@ public async Task SyncItemsAsync(bool fullSync = false, bool force = false)
Since = lastUpdatedAt,
};

List<PocketItem> items;

try
{
items = await _pocketClient.GetItemsAsync(filter, pageSize, page * pageSize);
}
catch (Exception ex)
{
_syncing = false;
_logger.LogError(ex, "Failed to get items from server");
WeakReferenceMessenger.Default.Send(new SyncFailureMessage("Failed to get items from server", ex));
return;
}

var items = await _pocketClient.GetItemsAsync(filter, pageSize, page * pageSize);
hasMoreItems = items.Count == pageSize;
count += items.Count;
page++;
Expand Down

0 comments on commit 24f6028

Please sign in to comment.