Software /
code /
prosody
Changeset
7221:56e65b1e54e8
mod_c2s: Remove connection object from session object when connection disconnected to prevent accidental use (see #590)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 02 Mar 2016 16:28:11 +0100 |
parents | 7200:67ac4a0b6e50 |
children | 7222:168d03dd09c7 |
files | plugins/mod_c2s.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_c2s.lua Thu Feb 25 22:36:42 2016 +0100 +++ b/plugins/mod_c2s.lua Wed Mar 02 16:28:11 2016 +0100 @@ -258,6 +258,7 @@ if session then (session.log or log)("info", "Client disconnected: %s", err or "connection closed"); sm_destroy_session(session, err); + session.conn = nil; sessions[conn] = nil; end end