Software /
code /
prosody
Changeset
9415:02155a10c5e9
mod_websocket: Silence the one warning instead of ignoring the entire file
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 30 Sep 2018 17:55:13 +0200 |
parents | 9414:a48579a7b709 |
children | 9416:15cd0d9cde7c |
files | .luacheckrc plugins/mod_websocket.lua |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/.luacheckrc Sun Sep 30 17:54:09 2018 +0200 +++ b/.luacheckrc Sun Sep 30 17:55:13 2018 +0200 @@ -140,7 +140,6 @@ "plugins/mod_privacy.lua"; "plugins/mod_storage_sql1.lua"; "plugins/mod_storage_sql.lua"; - "plugins/mod_websocket.lua"; "spec/core_configmanager_spec.lua"; "spec/core_moduleapi_spec.lua";
--- a/plugins/mod_websocket.lua Sun Sep 30 17:54:09 2018 +0200 +++ b/plugins/mod_websocket.lua Sun Sep 30 17:55:13 2018 +0200 @@ -95,6 +95,8 @@ session.send(st.stanza("close", { xmlns = xmlns_framing })); function session.send() return false; end + -- luacheck: ignore 422/reason + -- FIXME reason should be handled in common place local reason = (reason and (reason.name or reason.text or reason.condition)) or reason; session.log("debug", "c2s stream for %s closed: %s", session.full_jid or ("<"..session.ip..">"), reason or "session closed");