# HG changeset patch # User Matthew Wild # Date 1553509959 0 # Node ID 06bf5ccd859f9ecb55113e7c1687a39315ed2294 # Parent ec138e4254edbb8335f6a016d337522a07d1021c mod_csi_simple: Fix type in function name diff -r ec138e4254ed -r 06bf5ccd859f plugins/mod_csi_simple.lua --- 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 -