fix #4984
This commit is contained in:
@@ -262,6 +262,13 @@ class Daemon(DaemonThread):
|
||||
def get_wallet(self, path):
|
||||
return self.wallets.get(path)
|
||||
|
||||
def delete_wallet(self, path):
|
||||
self.stop_wallet(path)
|
||||
if os.path.exists(path):
|
||||
os.unlink(path)
|
||||
return True
|
||||
return False
|
||||
|
||||
def stop_wallet(self, path):
|
||||
wallet = self.wallets.pop(path, None)
|
||||
if not wallet: return
|
||||
|
||||
Reference in New Issue
Block a user