# HG changeset patch # User Kim Alvefur # Date 1459689501 -7200 # Node ID de76ded98b842f92bf7aef0c68aee18b293073d3 # Parent 20246b1396071e821bf41810ce2d0a016c48f4af mod_c2s: Just destroy the session when it has no connection (see #641) diff -r 20246b139607 -r de76ded98b84 plugins/mod_c2s.lua --- a/plugins/mod_c2s.lua Thu Mar 03 15:31:46 2016 +0100 +++ b/plugins/mod_c2s.lua Sun Apr 03 15:18:21 2016 +0200 @@ -175,6 +175,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