mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-24 14:51:05 +01:00
only one worker at a time
This commit is contained in:
parent
55f8c0b1a7
commit
72c98ed24b
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue