delay counters request on promise completion a bit
This commit is contained in:
parent
b66deb3240
commit
54ce930b8d
|
@ -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(() => {
|
||||
Feeds.requestCounters(true);
|
||||
setTimeout(() => {
|
||||
Feeds.requestCounters(true);
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue