commit 4137ae94a0e16d2de885b98d0ebf3d23adcb81ac
parent e0122f8c63080a32e3484f4917ef485af09e0114
Author: ThomasV <thomasv@electrum.org>
Date: Tue, 13 Mar 2018 15:07:19 +0100
flush certificate file; might fix #4059
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/interface.py b/lib/interface.py
@@ -174,6 +174,8 @@ class TcpConnection(threading.Thread, util.PrintError):
temporary_path = cert_path + '.temp'
with open(temporary_path,"w") as f:
f.write(cert)
+ f.flush()
+ os.fsync(f.fileno())
else:
is_new = False