mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-17 07:11:36 +02:00
close wallet before deleting
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user