actually check the promise

This commit is contained in:
Bruno Windels 2020-08-17 17:58:30 +02:00
parent df8d884d91
commit 4044ac56c5

View file

@ -41,6 +41,9 @@ export class TimelineList extends ListView {
} }
async _loadAtTopWhile(predicate) { async _loadAtTopWhile(predicate) {
if (this._topLoadingPromise) {
return;
}
try { try {
while (predicate()) { while (predicate()) {
// fill, not enough content to fill timeline // fill, not enough content to fill timeline