delay counters request on promise completion a bit

This commit is contained in:
Andrew Dolgov 2018-12-16 12:41:27 +03:00
parent b66deb3240
commit 54ce930b8d
2 changed files with 4 additions and 3 deletions

View File

@ -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;
}

View File

@ -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);
});
},