Browse Source

feat: only start waiting if inactive

thesimplekid 5 months ago
parent
commit
943d00bf20
1 changed files with 2 additions and 0 deletions
  1. 2 0
      crates/cdk/src/mint/mod.rs

+ 2 - 0
crates/cdk/src/mint/mod.rs

@@ -196,6 +196,7 @@ impl Mint {
                 let shutdown = Arc::clone(&shutdown);
                 let key = *key;
                 join_set.spawn(async move {
+            if !ln.is_wait_invoice_active() {
             loop {
                 tokio::select! {
                     _ = shutdown.notified() => {
@@ -218,6 +219,7 @@ impl Mint {
                             }
                         }
                     }
+                    }
                 }
             }
         });