Software /
code /
prosody
Changeset
9922:06bf5ccd859f
mod_csi_simple: Fix type in function name
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 25 Mar 2019 10:32:39 +0000 |
parents | 9921:ec138e4254ed |
children | 9923:e83dfcdeab59 |
files | plugins/mod_csi_simple.lua |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_csi_simple.lua Sun Mar 24 22:01:36 2019 +0100 +++ b/plugins/mod_csi_simple.lua Mon Mar 25 10:32:39 2019 +0000 @@ -90,7 +90,7 @@ end end -function disble_optimizations(session) +function disable_optimizations(session) if session.conn and session.conn and session.conn.resume_writes then filters.remove_filter(session, "stanzas/out", manage_buffer); filters.remove_filter(session, "bytes/in", flush_buffer); @@ -105,7 +105,7 @@ module:hook("csi-client-active", function (event) local session = event.origin; - disble_optimizations(session); + disable_optimizations(session); end); @@ -132,9 +132,8 @@ for _, user_session in pairs(prosody.hosts[module.host].sessions) do for _, session in pairs(user_session.sessions) do if session.state == "inactive" then - disble_optimizations(session); + disable_optimizations(session); end end end end -