1
0
mirror of https://github.com/flarum/core.git synced 2025-07-21 16:51:34 +02:00

Prevent pages loading count from going negative

This commit is contained in:
Toby Zerner
2015-07-27 12:23:36 +09:30
parent 0a2282f4ba
commit 8724fe9be2

View File

@@ -304,6 +304,7 @@ class PostStream extends mixin(Component, evented) {
if (this.loadPageTimeouts[twoPagesAway]) {
clearTimeout(this.loadPageTimeouts[twoPagesAway]);
this.loadPageTimeouts[twoPagesAway] = null;
this.pagesLoading--;
}
}
@@ -326,6 +327,7 @@ class PostStream extends mixin(Component, evented) {
if (this.loadPageTimeouts[twoPagesAway]) {
clearTimeout(this.loadPageTimeouts[twoPagesAway]);
this.loadPageTimeouts[twoPagesAway] = null;
this.pagesLoading--;
}
}