tadd lock to storage.write - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit f061fe047d9a6ac82ccca5e6d0911b7e088bf2f0 DIR parent a92138b61a64e94d5c38c80f9f1888a1d2493bb2 HTML Author: ThomasV <thomasv@electrum.org> Date: Thu, 7 Jul 2016 06:54:57 +0200 add lock to storage.write Diffstat: M lib/wallet.py | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -139,6 +139,9 @@ class WalletStorage(PrintError): self.data.pop(key) def write(self): + with self.lock: self._write() + + def _write(self): if threading.currentThread().isDaemon(): self.print_error('warning: daemon thread cannot write wallet') return