From 4137ae94a0e16d2de885b98d0ebf3d23adcb81ac Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 13 Mar 2018 15:07:19 +0100 Subject: [PATCH] flush certificate file; might fix #4059 --- lib/interface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/interface.py b/lib/interface.py index f7fe82420..2e76d9870 100644 --- 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