flush certificate file; might fix #4059

This commit is contained in:
ThomasV 2018-03-13 15:07:19 +01:00
parent e0122f8c63
commit 4137ae94a0

View file

@ -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