mod_scansion_record: Flush after writes
authorMatthew Wild <mwild1@gmail.com>
Fri, 08 Jan 2021 07:43:07 +0000
changeset 11258 613035d6e5a0
parent 11257 919e7b962f0b
child 11259 6a12f546d22f
mod_scansion_record: Flush after writes
plugins/mod_scansion_record.lua
--- a/plugins/mod_scansion_record.lua	Tue Jan 05 21:40:06 2021 +0100
+++ b/plugins/mod_scansion_record.lua	Fri Jan 08 07:43:07 2021 +0000
@@ -18,10 +18,12 @@
 
 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 @@
 		head:write(("\t%s: %s\n"):format(k, v));
 	end
 	head:write("\n");
+	head:flush();
 end
 
 local function record_event(session, event)