mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-04 20:55:59 +01:00
feat: only start waiting if inactive
This commit is contained in:
@@ -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 {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user