fix(swap): Dont cleanup because we have no Tokio reactor

This commit is contained in:
Binarybaron 2025-07-18 15:14:54 +02:00
parent a7823d7489
commit eb98b10c94

View file

@ -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(())
} }