close wallet before deleting

This commit is contained in:
wiesche
2026-09-02 21:57:04 +02:00
parent 39ba6c4ff2
commit b406a4f707
+1
View File
@@ -2072,6 +2072,7 @@ where
pub fn delete_wallet(&self, name: Option<&str>) -> Result<(), Error> {
let mut w_lock = self.wallet_inst.lock();
let lc = w_lock.lc_provider()?;
lc.close_wallet(name)?;
lc.delete_wallet(name)
}