mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-11-19 09:25:33 +00:00
Fix recursive call to swap by using run_until
We should call run_until instead of swap.
This commit is contained in:
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…
Reference in New Issue
Block a user