Changeset

11254:613035d6e5a0

mod_scansion_record: Flush after writes
author Matthew Wild <mwild1@gmail.com>
date Fri, 08 Jan 2021 07:43:07 +0000
parents 11253:919e7b962f0b
children 11255:6a12f546d22f
files plugins/mod_scansion_record.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)