mirror of
https://github.com/flarum/core.git
synced 2025-07-22 09:11:19 +02:00
Prevent pages loading count from going negative
This commit is contained in:
@@ -304,6 +304,7 @@ class PostStream extends mixin(Component, evented) {
|
|||||||
|
|
||||||
if (this.loadPageTimeouts[twoPagesAway]) {
|
if (this.loadPageTimeouts[twoPagesAway]) {
|
||||||
clearTimeout(this.loadPageTimeouts[twoPagesAway]);
|
clearTimeout(this.loadPageTimeouts[twoPagesAway]);
|
||||||
|
this.loadPageTimeouts[twoPagesAway] = null;
|
||||||
this.pagesLoading--;
|
this.pagesLoading--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -326,6 +327,7 @@ class PostStream extends mixin(Component, evented) {
|
|||||||
|
|
||||||
if (this.loadPageTimeouts[twoPagesAway]) {
|
if (this.loadPageTimeouts[twoPagesAway]) {
|
||||||
clearTimeout(this.loadPageTimeouts[twoPagesAway]);
|
clearTimeout(this.loadPageTimeouts[twoPagesAway]);
|
||||||
|
this.loadPageTimeouts[twoPagesAway] = null;
|
||||||
this.pagesLoading--;
|
this.pagesLoading--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user