Software /
code /
prosody
Diff
plugins/mod_websocket.lua @ 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 |
parent | 9378:a6f54df39624 |
child | 9795:02735bc82126 |
child | 9800:5c5117d41133 |
line wrap: on
line diff
--- 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");