1
0
This commit is contained in:
ThomasV
2019-02-08 11:17:48 +01:00
parent 8f4967f7d0
commit 1da1f0bfea
2 changed files with 12 additions and 3 deletions

View File

@@ -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