Changeset

7330:89dd1f86a48a

Merge 0.10->trunk
author Kim Alvefur <zash@zash.se>
date Sun, 03 Apr 2016 15:53:00 +0200
parents 7327:d62f0471470f (current diff) 7329:ab811c1bb730 (diff)
children 7335:ab7e7d4fe9c1
files plugins/mod_c2s.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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