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