Software /
code /
prosody
Diff
plugins/mod_c2s.lua @ 7329:ab811c1bb730
Merge 0.9->0.10
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 03 Apr 2016 15:52:40 +0200 |
parent | 7284:9434a220e549 |
parent | 7328:de76ded98b84 |
child | 7330:89dd1f86a48a |
child | 7466:f28fa742def3 |
line wrap: on
line diff
--- a/plugins/mod_c2s.lua Fri Apr 01 18:56:26 2016 +0200 +++ b/plugins/mod_c2s.lua Sun Apr 03 15:52:40 2016 +0200 @@ -179,6 +179,9 @@ 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