Browse Source

restore lock in storage.write (follow up to b5e0363f)

master
ThomasV 10 years ago
parent
commit
0fe410d7e6
  1. 1
      lib/wallet.py

1
lib/wallet.py

@ -119,7 +119,6 @@ class WalletStorage(PrintError):
assert not threading.currentThread().isDaemon() assert not threading.currentThread().isDaemon()
if not self.modified: if not self.modified:
return return
with self.lock:
s = json.dumps(self.data, indent=4, sort_keys=True) s = json.dumps(self.data, indent=4, sort_keys=True)
temp_path = "%s.tmp.%s" % (self.path, os.getpid()) temp_path = "%s.tmp.%s" % (self.path, os.getpid())
with open(temp_path, "w") as f: with open(temp_path, "w") as f:

Loading…
Cancel
Save