diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-30 17:55:13 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-30 17:55:13 +0200 |
commit | 0ddec30924c8eb44d4c24913a38e1708619c3764 (patch) | |
tree | 91b1cace7dd8201de77daf92f68c196dd14f4e86 /plugins/mod_websocket.lua | |
parent | 2a66d6061bc633a9993c9af6a6b5f24af98de47b (diff) | |
download | prosody-0ddec30924c8eb44d4c24913a38e1708619c3764.tar.gz prosody-0ddec30924c8eb44d4c24913a38e1708619c3764.zip |
mod_websocket: Silence the one warning instead of ignoring the entire file
Diffstat (limited to 'plugins/mod_websocket.lua')
-rw-r--r-- | plugins/mod_websocket.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_websocket.lua b/plugins/mod_websocket.lua index f981e871..a668b4fa 100644 --- a/plugins/mod_websocket.lua +++ b/plugins/mod_websocket.lua @@ -95,6 +95,8 @@ local function session_close(session, reason) 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"); |