# HG changeset patch # User Kim Alvefur # Date 1459691580 -7200 # Node ID 89dd1f86a48a04c1a46dab86df6cfc93210b068d # Parent d62f0471470fe9e2ea49dd414a2964d67499f8b3# Parent ab811c1bb7304070ba9e24f4ca8ce78a943b2a4c Merge 0.10->trunk diff -r d62f0471470f -r 89dd1f86a48a plugins/mod_c2s.lua --- a/plugins/mod_c2s.lua Sat Apr 02 17:13:12 2016 +0200 +++ b/plugins/mod_c2s.lua Sun Apr 03 15:53:00 2016 +0200 @@ -178,6 +178,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