mod_statistics: Remove 'return' so SESS lines are pushed to all sessions (thanks Ge0rG)
authorKim Alvefur <zash@zash.se>
Mon, 08 Dec 2014 14:27:10 +0100
changeset 1584 4713f9d453ec
parent 1583 c1bb2a64aabb
child 1585 64f55bcab9f7
mod_statistics: Remove 'return' so SESS lines are pushed to all sessions (thanks Ge0rG)
mod_statistics/mod_statistics.lua
--- a/mod_statistics/mod_statistics.lua	Sat Dec 06 17:42:51 2014 +0100
+++ b/mod_statistics/mod_statistics.lua	Mon Dec 08 14:27:10 2014 +0100
@@ -44,7 +44,7 @@
 		stats.bytes_in, stats.bytes_out);
 	local jid = session[jid_fields[session.type]] or "";
 	for conn in pairs(sessions) do
-		return conn:write(("SESS %q %q %s\n"):format(id, jid, s));
+		conn:write(("SESS %q %q %s\n"):format(id, jid, s));
 	end
 end