Prevent pages loading count from going negative

This commit is contained in:
Toby Zerner 2015-07-27 12:23:36 +09:30
parent de210108c3
commit cdb26eb226

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--;
}
}