|
|
|
@ -139,6 +139,9 @@ class WalletStorage(PrintError): |
|
|
|
self.data.pop(key) |
|
|
|
self.data.pop(key) |
|
|
|
|
|
|
|
|
|
|
|
def write(self): |
|
|
|
def write(self): |
|
|
|
|
|
|
|
with self.lock: self._write() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def _write(self): |
|
|
|
if threading.currentThread().isDaemon(): |
|
|
|
if threading.currentThread().isDaemon(): |
|
|
|
self.print_error('warning: daemon thread cannot write wallet') |
|
|
|
self.print_error('warning: daemon thread cannot write wallet') |
|
|
|
return |
|
|
|
return |
|
|
|
|