Diff

plugins/mod_scansion_record.lua @ 11254:613035d6e5a0

mod_scansion_record: Flush after writes
author Matthew Wild <mwild1@gmail.com>
date Fri, 08 Jan 2021 07:43:07 +0000
parent 10718:d229e4d31598
child 12110:b5b799a2a10c
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)