Fix recursive call to swap by using run_until

We should call run_until instead of swap.
pull/147/head
Daniel Karzel 3 years ago
parent 35c42263df
commit e4795fa4ee

@ -360,8 +360,10 @@ pub async fn run_until(
let db_state = (&state).into();
db.insert_latest_state(swap_id, Swap::Alice(db_state))
.await?;
swap(
run_until(
state,
is_target_state,
event_loop_handle,
bitcoin_wallet.clone(),
monero_wallet,

Loading…
Cancel
Save