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:
@@ -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--;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user