mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Prevent pages loading count from going negative
This commit is contained in:
parent
de210108c3
commit
cdb26eb226
|
@ -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--;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user