aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2021-01-08 07:43:07 +0000
committerMatthew Wild <mwild1@gmail.com>2021-01-08 07:43:07 +0000
commita55f2e24d85ef6a16920cc2707ef7020df1c2ae7 (patch)
treea5de0701f4d90a0dbbb17a1b169cd63e53692e9c /plugins
parentf27d27d3030a349920aee6656dfa9b086a6c857d (diff)
downloadprosody-a55f2e24d85ef6a16920cc2707ef7020df1c2ae7.tar.gz
prosody-a55f2e24d85ef6a16920cc2707ef7020df1c2ae7.zip
mod_scansion_record: Flush after writes
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_scansion_record.lua3
1 files changed, 3 insertions, 0 deletions
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)