mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 06:35:55 +00:00
delay counters request on promise completion a bit
This commit is contained in:
@@ -209,8 +209,7 @@ define(["dojo/_base/declare"], function (declare) {
|
|||||||
const seq = reply['seq'];
|
const seq = reply['seq'];
|
||||||
|
|
||||||
if (seq && this.get_seq() != seq) {
|
if (seq && this.get_seq() != seq) {
|
||||||
console.log("[handleRpcJson] sequence mismatch: " + seq +
|
console.log("[handleRpcJson] sequence mismatch: ", seq, '!=', this.get_seq());
|
||||||
" (want: " + this.get_seq() + ")");
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -141,7 +141,9 @@ define(["dojo/_base/declare"], function (declare) {
|
|||||||
|
|
||||||
if (promises.length > 0)
|
if (promises.length > 0)
|
||||||
Promise.all([promises]).then(() => {
|
Promise.all([promises]).then(() => {
|
||||||
|
setTimeout(() => {
|
||||||
Feeds.requestCounters(true);
|
Feeds.requestCounters(true);
|
||||||
|
}, 1000);
|
||||||
});
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user