From 14967637fafc63e5eb8c185404167d86c952e1cc Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 8 Jan 2021 07:43:07 +0000 Subject: mod_scansion_record: Flush after writes --- plugins/mod_scansion_record.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins') diff --git a/plugins/mod_scansion_record.lua b/plugins/mod_scansion_record.lua index 0e109a0d..6d57c209 100644 --- a/plugins/mod_scansion_record.lua +++ b/plugins/mod_scansion_record.lua @@ -18,10 +18,12 @@ local scan = io.open(record_file, "w+"); local function record(string) scan:write(string); + scan:flush(); end local function record_header(string) head:write(string); + head:flush(); end local function record_object(class, name, props) @@ -30,6 +32,7 @@ local function record_object(class, name, props) head:write(("\t%s: %s\n"):format(k, v)); end head:write("\n"); + head:flush(); end local function record_event(session, event) -- cgit v1.2.3