Skip to content

Commit

Permalink
feat: only start waiting if inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Oct 6, 2024
1 parent 065b4e2 commit 943d00b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/cdk/src/mint/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() => {
Expand All @@ -218,6 +219,7 @@ impl Mint {
}
}
}
}
}
}
});
Expand Down

0 comments on commit 943d00b

Please sign in to comment.