tflush certificate file; might fix #4059 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 4137ae94a0e16d2de885b98d0ebf3d23adcb81ac DIR parent e0122f8c63080a32e3484f4917ef485af09e0114 HTML Author: ThomasV <thomasv@electrum.org> Date: Tue, 13 Mar 2018 15:07:19 +0100 flush certificate file; might fix #4059 Diffstat: M lib/interface.py | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/interface.py b/lib/interface.py t@@ -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