only one worker at a time

This commit is contained in:
callebtc
2022-11-08 23:34:26 +01:00
committed by dni ⚡
parent 0d0d56a9c7
commit fedd40d2e7

View File

@@ -1526,6 +1526,9 @@ page_container %}
invoiceCheckWorker: async function () {
let nInterval = 0
if (this.invoiceCheckListener) {
clearInterval(this.invoiceCheckListener)
}
this.invoiceCheckListener = setInterval(async () => {
try {
nInterval += 1
@@ -1978,6 +1981,9 @@ page_container %}
checkTokenSpendableWorker: async function () {
let nInterval = 0
if (this.tokensCheckSpendableListener) {
clearInterval(this.tokensCheckSpendableListener)
}
this.tokensCheckSpendableListener = setInterval(async () => {
try {
nInterval += 1