mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-25 06:39:53 -04:00
fix(swap): Dont cleanup because we have no Tokio reactor
This commit is contained in:
parent
a7823d7489
commit
eb98b10c94
1 changed files with 8 additions and 7 deletions
|
@ -555,13 +555,14 @@ impl Context {
|
||||||
// TODO: close all monero wallets
|
// TODO: close all monero wallets
|
||||||
// call store(..) on all wallets
|
// call store(..) on all wallets
|
||||||
|
|
||||||
let monero_manager = self.monero_manager.clone();
|
// TODO: This doesn't work because "there is no reactor running, must be called from the context of a Tokio 1.x runtime"
|
||||||
tokio::spawn(async move {
|
// let monero_manager = self.monero_manager.clone();
|
||||||
if let Some(monero_manager) = monero_manager {
|
// tokio::spawn(async move {
|
||||||
let wallet = monero_manager.main_wallet().await;
|
// if let Some(monero_manager) = monero_manager {
|
||||||
wallet.store(None).await;
|
// let wallet = monero_manager.main_wallet().await;
|
||||||
}
|
// wallet.store(None).await;
|
||||||
});
|
// }
|
||||||
|
// });
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue