mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 04:35:56 +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'];
|
||||
|
||||
if (seq && this.get_seq() != seq) {
|
||||
console.log("[handleRpcJson] sequence mismatch: " + seq +
|
||||
" (want: " + this.get_seq() + ")");
|
||||
console.log("[handleRpcJson] sequence mismatch: ", seq, '!=', this.get_seq());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -141,7 +141,9 @@ define(["dojo/_base/declare"], function (declare) {
|
||||
|
||||
if (promises.length > 0)
|
||||
Promise.all([promises]).then(() => {
|
||||
setTimeout(() => {
|
||||
Feeds.requestCounters(true);
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user