diff options
author | Matthew Wild <mwild1@gmail.com> | 2019-03-25 10:32:39 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2019-03-25 10:32:39 +0000 |
commit | 3179518b6ac887fef63d5ffa83b2020691809299 (patch) | |
tree | 65f66915875c6c604c6f454dddba3dcfce78d9bd | |
parent | ee003734474622524bcf3eea479e64a6c91f2802 (diff) | |
download | prosody-3179518b6ac887fef63d5ffa83b2020691809299.tar.gz prosody-3179518b6ac887fef63d5ffa83b2020691809299.zip |
mod_csi_simple: Fix type in function name
-rw-r--r-- | plugins/mod_csi_simple.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/mod_csi_simple.lua b/plugins/mod_csi_simple.lua index 2dda1c42..c79c56fc 100644 --- a/plugins/mod_csi_simple.lua +++ b/plugins/mod_csi_simple.lua @@ -90,7 +90,7 @@ function enable_optimizations(session) 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 @@ end); module:hook("csi-client-active", function (event) local session = event.origin; - disble_optimizations(session); + disable_optimizations(session); end); @@ -132,9 +132,8 @@ function module.unload() 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 - |