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
|
||||
// call store(..) on all wallets
|
||||
|
||||
let monero_manager = self.monero_manager.clone();
|
||||
tokio::spawn(async move {
|
||||
if let Some(monero_manager) = monero_manager {
|
||||
let wallet = monero_manager.main_wallet().await;
|
||||
wallet.store(None).await;
|
||||
}
|
||||
});
|
||||
// TODO: This doesn't work because "there is no reactor running, must be called from the context of a Tokio 1.x runtime"
|
||||
// let monero_manager = self.monero_manager.clone();
|
||||
// tokio::spawn(async move {
|
||||
// if let Some(monero_manager) = monero_manager {
|
||||
// let wallet = monero_manager.main_wallet().await;
|
||||
// wallet.store(None).await;
|
||||
// }
|
||||
// });
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue