diff options
author | Kim Alvefur <zash@zash.se> | 2016-04-03 15:52:40 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-04-03 15:52:40 +0200 |
commit | cde08c4f4b6c0b9a0f4ecff49d1fc8e0110bb9c1 (patch) | |
tree | 4638d1171ad6d0127b6c0f99e7267837b51de056 /plugins | |
parent | 72ec06240f97cca6d2dfdb73ac721c6dbdb86193 (diff) | |
parent | 4ae4d1e53d3618ad24a6ee2811784151878e4170 (diff) | |
download | prosody-cde08c4f4b6c0b9a0f4ecff49d1fc8e0110bb9c1.tar.gz prosody-cde08c4f4b6c0b9a0f4ecff49d1fc8e0110bb9c1.zip |
Merge 0.9->0.10
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_c2s.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua index d950225d..2829d5fd 100644 --- a/plugins/mod_c2s.lua +++ b/plugins/mod_c2s.lua @@ -179,6 +179,9 @@ local function session_close(session, reason) sm_destroy_session(session, reason); conn:close(); end + else + local reason = (reason and (reason.name or reason.text or reason.condition)) or reason; + sm_destroy_session(session, reason); end end |