Commit 625c5994 authored by Reto Da Forno's avatar Reto Da Forno
Browse files

flush file after writing

parent 2b5d031d
......@@ -219,6 +219,7 @@ def append_lines_to_file(filename=None, filelock=None, lines=None):
if filelock.acquire(timeout=-1): # no timeout
f = open(filename, "a")
f.writelines(lines)
f.flush()
f.close()
filelock.release()
else:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment