Fix recursive call to swap by using run_until

We should call run_until instead of swap.
This commit is contained in:
Daniel Karzel 2021-01-18 18:08:13 +11:00
parent 35c42263df
commit e4795fa4ee

View File

@ -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,