feat: only start waiting if inactive

This commit is contained in:
thesimplekid
2024-10-06 20:57:33 +02:00
parent 065b4e248f
commit 943d00bf20

View File

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