More tests
This commit is contained in:
parent
8e774e1924
commit
6a75054e1a
2 changed files with 40 additions and 5 deletions
|
@ -322,11 +322,7 @@ export class SlidingSyncManager {
|
|||
// gradually request more over time, even on errors.
|
||||
await sleep(gapBetweenRequestsMs);
|
||||
}
|
||||
const listData = this.slidingSync.getListData(SlidingSyncManager.ListSearch);
|
||||
if (!listData) {
|
||||
// we failed to do the first request, keep trying
|
||||
continue;
|
||||
}
|
||||
const listData = this.slidingSync.getListData(SlidingSyncManager.ListSearch)!;
|
||||
hasMore = endIndex + 1 < listData.joinedCount;
|
||||
startIndex += batchSize;
|
||||
firstTime = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue