aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-03-02 16:34:34 +0100
committerKim Alvefur <zash@zash.se>2016-03-02 16:34:34 +0100
commit0b702d28acf78831d94c75d4c239650ee1fe2c53 (patch)
tree503e8a7491dba1c841c729de3c74b2b63d529298 /plugins
parent8e521f441ea38df4156e4945c564c11fefbffd17 (diff)
parent70a7adc1c1340992b85b63c248fe913c199782e3 (diff)
downloadprosody-0b702d28acf78831d94c75d4c239650ee1fe2c53.tar.gz
prosody-0b702d28acf78831d94c75d4c239650ee1fe2c53.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_c2s.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index c638cd03..42c35689 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -283,6 +283,7 @@ function listener.ondisconnect(conn, err)
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